Improper dialog object behavior.
Posted: Tue Mar 28, 2006 6:32 pm
Unless I'm doing something wrong, I'm finding that certain dialog objects return a null value unless the user interacts with the associated control.
In the Registration dialog, for example, the Company edit control receives information from Workstation Company and writes values to the USERCOMPANY variable. The Company edit control does indeed properly display the Workstation Company in the UI. However, if the Company edit control is left unmodified in the UI, the USERCOMPANY variable is null when the dialog exits. (This can be quickly replicated by placing a MessageBox displaying $USERCOMPANY$ after the Display Dialog: registration command). If the Company control is modified in the UI (e.g., add a space to the end of Workstation Company), then the USERCOMPANY variable is properly initialized when the dialog exits.
The same pheonomon occurs with the rzCheckBox control. If the checkbox is not changed in the UI, the value returned is empty. If the checkbox is changed in the UI, then a value of TRUE or FALSE is returned. I would think that the value returned should always be either TRUE or FALSE, whether or not the user has interacted with the rzCheckBox control.
I can program around the rzCheckBox control returning a null value but I have no way of capturing Workstation Company when the user doesn't modify the control.
In the Registration dialog, for example, the Company edit control receives information from Workstation Company and writes values to the USERCOMPANY variable. The Company edit control does indeed properly display the Workstation Company in the UI. However, if the Company edit control is left unmodified in the UI, the USERCOMPANY variable is null when the dialog exits. (This can be quickly replicated by placing a MessageBox displaying $USERCOMPANY$ after the Display Dialog: registration command). If the Company control is modified in the UI (e.g., add a space to the end of Workstation Company), then the USERCOMPANY variable is properly initialized when the dialog exits.
The same pheonomon occurs with the rzCheckBox control. If the checkbox is not changed in the UI, the value returned is empty. If the checkbox is changed in the UI, then a value of TRUE or FALSE is returned. I would think that the value returned should always be either TRUE or FALSE, whether or not the user has interacted with the rzCheckBox control.
I can program around the rzCheckBox control returning a null value but I have no way of capturing Workstation Company when the user doesn't modify the control.