I found this FM BusinessTracker db and I'm trying to learn from it.This db has a script call Go To Module thats kind of a navigation script. I don't understand the first part of the script and was wondering if any body can tell me what is does? I'm running FM 8.5
Enter Brwose Mode
If (not IsEmpty(Get(ScriptParameter))
Set Field (Preference::gLastLayout;
Case ( Preferences::gCurrentModule = Preferences::HelpModuleID; Preferences::gLastLayout; Get ( LayoutNumber ) )
Set Field (Preference::gCurrentModule;
Preferences::gNavID [ Get(ScriptParameter) ]
Set Field (Preference::gText;
Get(LayoutName)
Commit Records/Request
no dialog
Go to layout
"Settings(Preferences)
If(not IsEmpty(AccountModuleInfo::LastLayout)
Go to Layout (AccountModuleInfo::LastLayout)
Else
Enter Brwose Mode
If (not IsEmpty(Get(ScriptParameter))
Set Field (Preference::gLastLayout;
Case ( Preferences::gCurrentModule = Preferences::HelpModuleID; Preferences::gLastLayout; Get ( LayoutNumber ) )
Set Field (Preference::gCurrentModule;
Preferences::gNavID [ Get(ScriptParameter) ]
Set Field (Preference::gText;
Get(LayoutName)
Commit Records/Request
no dialog
Go to layout
"Settings(Preferences)
If(not IsEmpty(AccountModuleInfo::LastLayout)
Go to Layout (AccountModuleInfo::LastLayout)
Else