I've got a function currently structured like so:
The MakeCombobox function might fail (ie. no data for the control) and if it does, I'd like to destroy the dialog and exit. Unless I'm mistaken, my only choices here are to either restructure the MakeComboBox function to return a string (or array) and not populate the control directly (so I can call it before DIALOG NEW), or to DIALOG POST a fail message. Is this correct?
Code:
FUNCTION MakeDialog( ) DIALOG NEW ... CONTROL ADD ... ... IF MakeComboBox( hDlg, %COMBOBOXID, etc.) THEN ??? DIALOG SHOW MODAL ... FUNCTION = lResult END FUNCTION
Comment