FORMULA LANGUAGE
Examples: @IsDB2
1. This formula returns 0 (False), since the local names.nsf database is not in DB2:
@IsDB2("":names)
2. These formulas both return DB2 information about the current database:
@IsDB2(@DbName)
@IsDB2("":"")
3. This formula returns 1 if FRITES.NSF in the MAIL directory on the server Belgium is DB2 backed. Otherwise it returns 0.
@IsDB2( "Belgium" : "mail\\frites.nsf" )
4. This formula returns DB2 information about a database using its replica ID instead of its file name:
@IsDB2("Cheshire";"852556DO:00576146")
5. This example of a column formula first uses @IsDB2 to find out if the local database referenced in the dbname field of the document is a DB2 database, so that a more meaningful error message may be displayed from @DB2Schema:
result1 := @IsDB2("":dbname);
result2 := @DB2Schema("":dbname)
@If(@IsError(result1);"Unable to find database or lost server connection";
result1;@If(@IsError(result2);
"Unable to find database or lost server connection";result2);
"Not a DB2 database");
Glossary
Feedback on
Help
or
Product Usability
?
Help on Help
All Help Contents
Glossary