Script functions reference > Script functions in alphabetical order > D > DelSubstKey

DelSubstKey
Syntax
DelSubstKey(tbl_file, str_key);
tbl_file
str_key
Description
Deletes an entry specified by str_key from the substitution table tbl_file. It does not affect the physical file stored on disk, only the representation of the table in the memory.
Returns
A number indicating whether the entry was deleted successfully.
1
0
Example
In this example, the following substitution table (author.tbl) is used.
//!CodePage UTF8!
//!multicolumn!
agatha christie  1890
alfred hitchcock 1899
The following script deletes an entry from the physical substitution table stored on disk (author.tbl):
DelSubstKey("../data/tables/author.tbl","alfred");
WriteSubst("../data/tables/author.tbl");
After the script is executed, author.tbl is changed as follows:
//!CodePage UTF8!
//!multicolumn!
agatha christie 1890
Notes
OpenText StreamServe 5.6 Updated: 2013-03-01