Built-in functions
For a complete list of built-in functions, see here, for attention on using built-in functions, see here.
Custom functions
Users can use the Func ... Endfunc statements are derived from defining functions.
You can define the parameters of a function and its return value as needed.
The function name must begin with a letter or underscore "_", and the remainder (not the first character) can be selected randomly in letters, numbers, or underscores. The names of the functions listed below are valid:
MyFunc
Func1
_my_func1
The following is an example function that is 10 times times as much as the function of a given number:
Copy Code code as follows:
$val = 10
for $i = 1 To 10
$doubled = mydouble ($val)
msgbox (0, "", $val & " twice Times is " & $ Doubled)
$val = $doubled
next
exit ;
Func mydouble ($value)
$value = $value * 2
Return $value
Endfunc