AnsweredAssumed Answered

Adding Variables to a script

Question asked by ThomasStout on Mar 9, 2010
Latest reply on Mar 11, 2010 by mrvodka


Adding Variables to a script




I'm just learing FM 10 after having used FM 6 for years.  I'm on a Mac, runnning Tiger, FM Adv 10.  I have the following script:


Find this Week

Go to Layout [ “Client Name/Time” (Schedule) ]
Enter Find Mode [ Specified Find Requests: Find Records; Criteria: Schedule::ThisWeek: “...”
Omit Records; Criteria: Schedule::Schedule: “avail”
Omit Records; Criteria: Schedule::Schedule: “e-bike” ]
[ Restore ]
Set Field [ Schedule::ThisWeek; WeekOfYear ( Get (CurrentDate) ) & Year ( Get (CurrentDate) ) ]
Perform Find [  ]
Sort Records [ Specified Sort Order: Schedule::Planner Date; ascending
Schedule::SchTime; ascending ]
[ Restore; No dialog ]


My understanding is that I can add variables to a script so that if I want to Find the week previous or next, I can use this script as a base and get different weeks using variables.  Is this true?  If so, could someone explain how to set that up?  And of course, if I'm on the wrong track, please let me know that too.