Click here to return to the KiXtart HelpDesk main page...

KiXtart 2001 Manual

Val( )

Action: Returns the numeric value of a string.
 
Syntax: VAL("string")
 
Parameters:

String

The string whose numeric value you want to discover. By default, Val expects the string to be in decimal format.

To determine the numeric value of a hexadecimal string, start the string with an ampersand &.

Returns: The numeric value of the input string.
 
Example:

$x = VAL(SUBSTR(@IPADDRESS0, 1, 3))
$x = VAL("&A34")