|
![]() |
![]() |
version 11
PA_CreateVariable (varKind; stringSize) → PA_Variable
Parameter | Type | Description | |
varKind | PA_VariableKind | → | Kind of the variable to create |
stringSize | short | → | Length of a string variable |
Function result | PA_Variable | ← | Variable of appropriate kind |
Description
The routine
PA_CreateVariable
creates and initializes a variable of the appropriate kind and returns it.
Pass the kind of variable you want to create in the
varKind
parameter. If you create a string variable, pass the length of the string in
stringSize
. For all other kinds, the
stringSize
parameter is ignored.
PA_CreateVariable
initializes the variable at its default value (0 for numerics, empty string, null date, 0 size BLOB, zero element array) and takes care of every memory allocation needed by some specific kinds (arrays, BLOBs)