ReadSubst(tbl_file);
tbl_file
Re-reads a substitution table from disk. The substitution table is re-read only if the physical file has been changed since it was last read to memory.
0 1 -1 In this example, the following substitution table (author.tbl) is used.
//!CodePage UTF8!//!multicolumn!agatha christie 1890alfred hitchcock 1899In the following script, ReadSubst is used to determine whether author.tbl has changed. If it has, $test will be set to 1, and $nameSur will be set to christie.if (preproc() = 0)
{
$test = ReadSubst("../data/tables/author.tbl");if (Num($test) = 1){
$nameSur = Subst("../data/tables/author.tbl", "agatha");}}
• A substitution table is kept in memory until the script function EraseSubst is called for that table.
OpenText StreamServe 5.6 | Updated: 2013-03-01 |