of the Month (January 2003)
A Demo Form That Will Timeout
If you are making forms that you plan to sell to other people, you
may want to allow your prospective customers to try the form for
a limited time. When the forms comes up, just have the form run
a little macro program that determines if the curent date is beyond
a specified date and, if it is, immediately close the form. The
macro program is just four commands long:
1: Skip button. Expression: if ('2003-01-16' - @now < 0) then
0 else 2
2: Message "Form has timed out"
3: RECORD | CLOSE
Command 4: "Return from macro"
Don't forget to select EDIT | MACROS/EVENTS, press the EVENTS
button, and set the ON STARTUP event to trigger your macro.