Filemaker Pro 8.5 Advanced Maintenance TG761Z/A Benutzerhandbuch
Produktcode
TG761Z/A
Chapter 7
|
Get functions 111
Evaluate("Let ( [" & Get(ScriptParameter) & "]; a + 1 & \", \" & b
+ 2 )" )
The following example shows how to pass named parameters, while keeping the ability to
check the syntax of the second parameter of the Let function (the example returns
+ 2 )" )
The following example shows how to pass named parameters, while keeping the ability to
check the syntax of the second parameter of the Let function (the example returns
6,
12
):
ScriptParameter = "a = 5; b = 10"
Let( [a = Evaluate("Let( [" & Get(ScriptParameter) & "]; a )"),
Let( [a = Evaluate("Let( [" & Get(ScriptParameter) & "]; a )"),
b = Evaluate("Let( [" & Get(ScriptParameter) & "]; b )")];
a + 1 & ", " & b + 2 )
Get(ScriptResult)
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
, 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.
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
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 Find [Restore]
New Record/Request
Exit Script [Result: Get(FoundCount) < 10]
Do Reports
Perform Script [Find Customers]
If [Get(ScriptResult) = 0]
If [Get(ScriptResult) = 0]
Show Custom Dialog [“You have created 10 records already.”]
End If