A5RunXbasicAfterClosingWindows( Code as C [, Message as C ] )
Xbasic code saved in a character variable.
Optional. The message to display in the warning dialog box.
The A5RunXbasicAfterClosingWindows() function closes all open windows (and the tables behind them), runs Xbasic code, then restores the current window. This function is useful for performing <TBL>.PACK()operations that require exclusive access to a table.
Alpha Five Version 6 and Above
Desktop applications only.
The following example, when attached to a button on the customer form, closes the form, displays a message box, executes the specified Xbasic code after the user presses OK, then redisplays the customer form.
dim code as C
code = <<%code%
Form Functions and Methods