C++
int acdbSNValid( const ACHAR * tbstr, int pipetest );
File
acedads.h
Description
Tests a symbol table name for validity, including symbol table names with out-of-code-page escape sequences.
For applications that read a symbol table name from the keyboard, set pipetest to FALSE , because other functions would not accept a name containing the | character.
A symbol table name is valid if it is non-null and contains only characters allowed in filenames except the comma, semicolon, accent grave, and equals sign, which are also not allowed.
This function works only with symbol table names in the current document. It does not work with non-current documents or in zero-document state.
The acdbSNValid() function returns RTNORM if the symbol table name is valid in the current document. Otherwise, it returns OL_ESNVALID.
Parameters
Parameters | Description |
---|---|
tbstr | Null-terminated symbol table name, (for example, "LAYER0") |
pipetest | If TRUE the pipe character (|) is allowed in the table name; if FALSE , the pipe character is not allowed |