Tip of the Month (January 2002) Running a Macro Program When a Form is First Launched When a Visual CE form is first launched (either from the START menu, a Jump Button, or a Command Button) you may want the form to do something before the user gets control. For example, you may want to insert a new record every time the form is started. Starting in Visual CE 10.0, all you need to do is use EDIT | MACRO/EVENTS to create a macro and then set the "On Startup" event to trigger that macro. When the form is launched, the macro will be run. In Visual CE 9.x, all you need to do is create a named macro called "STARTUP". When the form is launched, this macro will be run. If you have an older version of Visual CE, here is how to do it.
|