The speed with which a form loads is largely based upon the number of window elements that must be loaded for the form. Fewer window fields, invisible fields and other window elements, such as lines, boxes and pictures, result in faster loading.
To speed up form loading, avoid using scripts attached to hidden window fields. Instead, use form-level procedures or form-level functions.
If possible, use the copy from table, copy to table, copy from table to window, and copy from window to table commands to update window fields, instead of using the set statement. These commands provide better performance when updating windows and result in shorter scripts.