> FrmDodialog works in the sense that it only pops a form and waits until
> a user hits a control, then closes, returning the id of the tapped
> control. at that point, the field contents, and all form memory is wiped
> out.

you can set your own handler before calling FrmDoDialog and then you can have
all control you wish

and also memory is not wiped out. all this happens only after you call
FrmDeleteForm.

so basich scheme of using FrmDoDIalog is

frmP=FrmInitForm(formId);
//do initialisation of form (same thing you would do on frmOpenEvent
FrmSetEventHandler(frmP,MyEventHandler); //on ctlSelectEvents - if you mark them
as handled dialog will continuye. if you will return false then dialog will end
and id of selected control will be returned
button=FrmDoDialog(frmP);
//do all processing you want depending on pressed button
//do all processing you would do on frmClose event
FrmDeleteForm(frmP);

and you are done. IMHO its much simpler then FrmPopupForm and FrmReturnToForm,
but thats probably dependant on personal preference

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to