The problem is that the controls get destroyed before the unload. You need to save ThisForm.doWhat.value to a Form property, then return this property in the Form's unload.
Hope this helps.
< I have a modal form with a label (message place), a single command group (named "dowhat") which has three buttons.
I want to release the form and return the value of the command group (named "dowhat") back to the calling prg.
If I use "thisform.release" in the click event of the command group, "dowhat" apparently gets destroyed and the unload event of the form does not like "RETURN thisform.dowhat.value".
This is where the book tells me to put this stuff.