Returns the value of a local or global variable
Source position: amigados.pas line 2592
function GetVar( |
const Name: PChar; |
Buffer: PChar; |
Size: LongInt; |
Flags: LongInt |
):LongInt; |
Name |
|
Pointer to a variable name. |
Buffer |
|
A user allocated area which will be used to store the value associated with the variable. |
Size |
|
Length of the buffer region in bytes. |
Flags |
|
combination of type of var to get value of (low 8 bits), and flags to control the behavior of this routine. |
Size of environment variable. -1 indicates that the variable was not defined.
Gets the value of a local or environment variable. It is advised to only use ASCII strings inside variables, but not required. This stops putting characters into the destination when a n is hit, unless GVF_BINARY_VAR is specified. (The n is not stored in the buffer.)
Currently defined flags include:
The default is to try to get a local variable first, then to try to get a global environment variable.
|
Sets a local or environment variable |
|
|
Deletes a local or environment variable |
|
|
Finds a local variable |