>According to the VFP6 help system you can return a value from a form by placing a "return value" statement in the "UNLOAD" event. However, by the time UNLOAD the DESTROY event has already trashed all of your form variables. How can I return a form variable value from a form?
REPORT FORM frmName TO variable_name
Then return your value from the form in the unload event as it looks like you are doing now.
Everything we see or seems
Is but a dream within a dream - Edgar Allen Poe