@VAL |
|
| Top Previous Next | |
Syntax:
@VAL(<value>)
Description:
This function may be required if a program is calling external libraries using the @LIB function, and the function returns binary values. It returns a number which is the value of the string <value> if its bytes are treated as a binary number. This is required because DialogScript cannot work directly with binary data.
The result of @VAL(@BINARY(DWORD, %X)) should be %X.
Typically, <value> will be 1, 2, 4 or 8 bytes long, being a byte, word, dword or large integer value. If the binary value is part of a C-language STRUCT data type, the appropriate bytes can be accessed using the @SUBSTR function.
OK:
Unchanged.
See also: