Function to link a global variable.
Creates an interface to the variable. The specified local variable is closely associated with the interface.
Sintassi |
i32 gv_link (string var, i32 len, string wrtPsw, i32 gvID, buff) |
||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
var |
Variable name. Can contain letters, numbers, spaces, and special characters. Not case sensitive |
||||||||||||||||||||||||||||
len |
Size in bytes of the global variable |
||||||||||||||||||||||||||||
wrtPsw |
Password for write access. If omitted (""), the password is not used |
||||||||||||||||||||||||||||
gvID |
Local variable in which the function inserts the ID relative to the interface to the global variable. In case of an error, the function inserts 0 |
||||||||||||||||||||||||||||
buff |
Local buffer used as a cache connected to the ID (if present). It is used to update the global variable information during read and write operations. When the function is called, its value indicates the initialization value of the global variable. It must necessarily be the same size as the global variable |
||||||||||||||||||||||||||||
Result |
Returns:
|
||||||||||||||||||||||||||||
Validity |
Rule, Task |
||||||||||||||||||||||||||||
Note |