Syntax: DIALOG SHOW MODAL hDlg [[,] CALL callback] [TO lResult&]
According to the help:
What value is assigned to the lResult& variable?
Is the same result assigned if the user clicks on the system close dialog button?
If I trap the %WM_DESTROY message and set "FUNCTION =" will that be returned to the lResult& variable?
According to the help:
lResult&
When the modal dialog is destroyed using the DIALOG END statement, the resulting value is assigned to the lResult& variable, if specified. lResult& is excluded from becoming a Register variable by the compiler, since this value can be assigned from outside of the function containing the DIALOG SHOW MODAL statement, and this may only be performed with a memory variable. However, if the target variable is explicitly declared as a register variable, PowerBASIC raises a compile-time Error 491 ("Invalid register variable").
When the modal dialog is destroyed using the DIALOG END statement, the resulting value is assigned to the lResult& variable, if specified. lResult& is excluded from becoming a Register variable by the compiler, since this value can be assigned from outside of the function containing the DIALOG SHOW MODAL statement, and this may only be performed with a memory variable. However, if the target variable is explicitly declared as a register variable, PowerBASIC raises a compile-time Error 491 ("Invalid register variable").
Is the same result assigned if the user clicks on the system close dialog button?
If I trap the %WM_DESTROY message and set "FUNCTION =" will that be returned to the lResult& variable?
Comment