How Do I Specify the Screen Refresh Rate in a Batch Task? (Magic xpa 4.x)
When you are creating batch tasks, it is common to have a progress screen of some sort show to the user, so the user knows something is going on. This screen needs to refresh itself, so it can show records cycling or a progress bar moving. However, if the screen refreshes itself too often, this impacts the speed of the batch task. The ideal refresh rate often depends on the hardware that is running: newer, faster computers can handle more screen refreshes than older ones can.
So, you can set this feature at runtime using the Batch event interval environment setting. The Batch Event Interval is set in units of 1 millisecond, so a batch interval of 1000 means the screen will refresh once every second.
-
Go to Options->Environment->System->Batch event Interval. Enter the number of milliseconds you want to use. Or,
-
Enter the desired number of milliseconds in the Magic.ini file, as the BatchPaintTime setting. Or,
-
Use an INIPut to change the BatchPaintTime setting temporarily. You can do this if you want to change the paint time for one batch program, for instance, and change it back when the program is finished.