KRASCHE
&
BYRNE
         ELZED  HOME       NEWS       DOCS       DOWNLOADS       LICENSING       SUPPORT       FAQ       ABOUT  US

What's An Elzed?
Features
Licensing
Downloads
Documentation
Elzed News
    ELZED 
 Documentation 
 The Details 
 API 

lzGetVarType

The 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
);

Parameters

cScope
   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



  Copyright  ©  MMXXV  by  R R Le Cropane   •   All Rights Reserved   •   Terms of Use   •   Privacy Policy