|
04/11/2007, 11:12 AM
#615
Check out the latest 4.01a8, some nice new additions since 4.0!
http://www.sto-helit.de/index.php?mo...ry=16&entry=85
Of Note (to me):
SelectDirectory and SelectFile dialogs (as functions)
IniWrite( file, section, key, value )
Replace( string, old, new ) function
Call and CallScript allow to pass parameters, the invoked Sub or Script receives them in the local variables argc (count of parameters) and argv (array with the parameters, indexes start with 1). Hint: "Call Function, x" would be old syntax, thus it would pass the string "x". To use the variable's value, you have to use "Call( "Function", x )" (new syntax) or "Call Function, %x%" (old syntax).
- Additionally, there are now CallFunction and CallScriptFunction, which expect a target variable for the result as second parameter. All parameters after that are passed to the function. Setting the return value is done with Return( value ) in the invoked Sub or Script. Return() only sets the return value, it doesn't exit the invoked Sub or Script!
|
|
|