AppCtrlScript

MAY Computer

Help

VAL

Applies to  

AppCtrlScript (Module: wmACScr1.dll)

Group  

String

See also  

Returns the as value interpreted value string of a given source string. As decimal point only the "." is recognized. trailing non numerical characters are stripped off.

Syntax

VAL <VariableName>, <String>

Part

Description

<VariableName> Script variable where to store the result.
<String> Source string.

 

Samples

VAL MyValue, "30.5 yards"
;Result in MyValue is 30.5
VAL MyValue, "5m"
;Result in MyValue is 5
VAL MyValue, "345,2"
;Result in MyValue is 345