| lzGetVarTypeThe lzGetVarType function retrieves the data type of the specified Elzed variable. All Elzed variables, whether conventional or linked, can be processed by this function. char lzGetVarType( | char cScope, | | // the scope of the variable | | const char* szVariableName | | // the name of the variable |
);
ParameterscScope | | A character code indicating the scope of the desired variable. The character code must be one of the following values:
Code
|
Constant
|
Meaning
|
'C'
|
kCosmicScope
|
Available in all contexts
|
'G'
|
kGlobalScope
|
Available in current context only
|
'A'
|
kAnyScope
|
Either cosmic or global
|
|
szVariableName | | A null-terminated character string containing the name of the desired variable. |
Return Value | Returns the data type code of the variable. The codes are as follows:
Code
|
Constant
|
Meaning
|
'N'
|
kTypeNum
|
Numeric |
'S'
|
kTypeStr
|
String |
'B'
|
kTypeBool
|
Boolean |
'X'
|
kTypeNone
|
No such variable exists |
|
Remarks | The target variable must exist in the current context and/or at the specified scope. |
Versions | Introduced in Elzed 1.2.0 Modified in Elzed 2.4.0 -- Variable name parameter (char*) is now declared const. | | This page describes the version of lzGetVarType active in Elzed 2.5.0 (208: 2.5.0) |
See Also |