Categories INFO is the set of functions for getting
some information about values, functions, parameters, and so.
DEFPATH() | Returns the true path defined in SET DEFAULT command. |
ERRORBLOCK() | Post a code block to execute when a runtime error occurs |
ISFIELD() | Checks if a varialbe name is a field name of DB. |
ISFUNCTION() | Checks if a varialbe name is a function name. |
ISMEMVAR() | Checks if a varialbe name is a memory variable name. |
LEN() | Return the length of a character string or the number of elements in an array |
MEMVARGET() | Returns MEMVAR value. |
MEMVARSET() | Sets MEMVAR value. |
NETERR() | Determine if a network command has failed |
OS() | Return the operating system name |
PARAM() | Returns paarameter value. |
PCOUNT() | Determine the position of the last actual parameter passed |
PROCLINE() | Return the source line number of the current or previous activation |
PROCNAME() | Return the name of the current or previous procedure or user-defined function |
SET() | Inspect or change a system setting |
STARTPATH() | Returns full path and name of program. |
TYPE() | Determine the type of an expression |
VALTYPE() | Determine the data type returned by an expression |
VERSION() | Returns xClipper version |
WEIGHTASC() | Returns the weight characterics of character. |
WEIGHTCHR() | Returns character by weight characterics. |
WEIGHTTABLE() | Returns the weight table of characters. |
ISFIELD(<sVarName>) --> TRUE || FALSE
Returns TRUE if a varialbe name is a field name of DB.
ISFIELD() returns TRUE if a varialbe name <sVarName> is a field name of DB.
USE adressbook.dbf ... if ISFIELD("NAME") qout('"NAME" is field of DB') else qout("Error") endif
No dependies of platform.
ISFUNCTION(<sVarName>) --> TRUE || FALSE
Returns TRUE if a varialbe name is a function name.
ISFUNCTION() returns TRUE if a varialbe name <sVarName> is a function name.
PRIVATE VarName .... static function Fnc() ..... return ... ? ISFUNCTION("Fnc") // --> TRUE ? ISFUNCTION("VarName") // --> FALSE VarName := "Fnc" ? ISFUNCTION(VarName) // --> TRUE
No dependies of platform.
ISMEMVAR(<sVarName>) --> TRUE || FALSE
Returns TRUE if a varialbe name is a memory variable name.
ISMEMVAR() returns TRUE if a varialbe name <sVarName> is a memory variable name (PRIVATE, PUBLIC).
PRIVATE VarName LOCAL _VarName ... ? ISMEMVAR("VarName") // --> TRUE ? ISMEMVAR("_VarName") // --> FALSE
No dependies of platform.
MEMVARGET(<sVarName>) --> <vVarValue>
Returns of MEMVAR value with name <sVarName>.
MEMVARGET() returns MEMVAR value with name <sVarName>.
MEMVARSET(Mem, "asdf") ? MEMVARGET(Mem) // --> asdf
No dependies of platform.
MEMVARSET(<sVarName>, <vData>) --> TRUE || FALSE
Returns TRUE if successfully.
MEMVARSET() sets new MEMVAR value with name <sVarName>.
MEMVARSET(Mem, "asdf") ? MEMVARGET(Mem) // --> asdf
No dependies of platform.
PARAM(<nParNumber>) --> <vParData>
Returns the parameters value.
PARAM() returns the data <vParData> value of parameter with number <nParNumber>.
static function testParam(p1, p2, p3, p4, p5, p6, p7, p8, p9, p0) local i for i=1 to PCOUNT() ? PARAM(i) next return .... testParam(1, 2, "A", "AB", "ABC") // --> 1 // 2 // A // AB // ABC
No dependies of platform.
WEIGHTASC(<sString>) --> <nCode>
Returns the numeric value <nCode> - weight of character into weight table.
WEIGHTASC() returns the numeric value <nCode> - weight first character of source string <sString> into weigth table. This code characterize the position character for comparing operation.
str := "asdf" wa := WEIGHTASC(str) // --> 66 ? WEIGHTCHR(wa) // --> a ? WEIGHTCHR(wa+1) // --> b ? WEIGHTCHR(wa+10) // --> k
No dependies of platform.
WEIGHTCHR(<nCode>) --> <sChar>
Returns the character <sChar>.
WEIGHTCHR() returns the character <sChar> by them weight characterictics <nCode>.
str := "asdf" wa := WEIGHTASC(str) // --> 66 ? WEIGHTCHR(wa) // --> a ? WEIGHTCHR(wa+1) // --> b ? WEIGHTCHR(wa+10) // --> k
No dependies of platform.
WEIGHTTABLE() --> <sTable>
No arguments
Returns the string <sTable> - weight table of characters.
WEIGHTTABLE() returns the string <sTable> - weight table. This table contain the "weight" all 256 characters and using for comparison operations, for operations with index mode, for regular expressions and more.
wt := WEIGHTTABLE() for i=1 to 256 ? str(i, 3)+": "+as(wt[i]) next
No dependies of platform.