Go to Contents
Previous
Page
Next
Page
Contents > Functions reference (alphabetical list) > Get functions > Get(ScriptResult) function

Get(ScriptResult) function
Format

Get(ScriptResult)
Parameter
None
Data type returned
text, number, date, time, timestamp, container
Description
When this function is part of a calculation evaluated within a script, returns the script result from a performed subscript. If a subscript doesn't return a result, then the content of the script result will be empty.
Example
In the following example, script Find Customers returns the results of a find request when it is called from script Do Reports. Script Find Customers uses the optional script result of the Exit Script script step. Script Do Reports then uses Get(ScriptResult) to determine what other script steps should be performed based on the returned result stored in Get(ScriptResult).
Find Customers

Set Error Capture [On]
Perform Find [Restore]
New Record/Request
Exit Script [Result: Get(FoundCount) < 10]
Do Reports

Perform Script [Find Customers]
If [Get(ScriptResult) = 0]
         Show Custom Dialog ["You have created 10 records already."]
End If
Related topics
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas

Contents > Functions reference (alphabetical list) > Get functions > Get(ScriptResult) function
Previous
Page
Next
Page