Used this function to return a value from a Number or a String.  

 

When a numeric value is being returned use the script.returnValue property.

When a string value is returned use the script.stringReturnValue property.

 

Syntax:

script.SetReturnValue( anyValue )

 

Parameter:

Description:

anyValue

Value can be any numeric or string value.

 

Example:

'  Numeric Example
SizeToRemove = ( 1 * 4 )
 
'  Return numeric value
script.SetReturnValue( SizeToRemove )

 
'  Return a text value
PRINT script.returnValue
'  --------------------------------------
sStringItem = "ABCD"
'  Return a string value
script.SetReturnValue( sStringItem )

Results:

Numeric value returned:  4

String value returned:  ABCD

 

Links:

Script, Script Functions, Script Properties

See Also:

 


Edit Time: 9/21/2020 3:13:21 PM


Topic ID#: 552

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software