Filemaker TH325Z/A Datový list Strana 111

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 238
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 110
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 6, 12):
ScriptParameter = "a = 5; b = 10"
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 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
Zobrazit stránku 110
1 2 ... 106 107 108 109 110 111 112 113 114 115 116 ... 237 238

Komentáře k této Příručce

Žádné komentáře