-
Notifications
You must be signed in to change notification settings - Fork 16
/
env.get.fmfn
32 lines (25 loc) · 844 Bytes
/
env.get.fmfn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
env.get( parameter )
RETURNS: FileMaker's Get functions in a more friendly manner
DEPS: os.isWindows
*/
Let(
//--------------- VARIABLES
p = parameter;
//--------------- RESULT
Case(
p = "platform" ; If( os.isWindows ; "windows" ; "macintosh");
p = "account" ; Get ( AccountName );
p = "layout" ; Get ( LayoutName );
p = "found" ; Get ( FoundCount );
p = "button" ; Get ( LastMessageChoice );
p = "result" ; Get ( ScriptResult );
p = "mode"; Choose ( Get ( WindowMode ) ; "Browse"; "Find"; "Preview"; "Printing");
p = "filename" ; Get ( FileName );
p = "localfile" ; Get( MultiUserState ) = 1 or Get( MultiUserState ) = 0;
p = "datetime" ; Get( CurrentTimeStamp );
p = "script" ; Get( ScriptName );
p = "nic" ; GetValue( Get ( SystemNICAddress ) ; 1 );
p = "version" ; Abs( Get ( ApplicationVersion ) );
0 ) // End Case
) // End Let