I have a client that wants a form to be non-editable if opened from a particular menu. Is there a way to pass a boolean to the form at run to switch this? I created a function on the form that passes the information, but when the third line is run, the variable (naturally) is cleared. OkToEdit := FALSE; DesiredForm.OpenedFromNonEditLocation(OkToEdit); FORM.RUNMODAL(DesiredForm); Any tips would be appreciated. Thanks, Rick
You almost got it :-). Instead of using the generic
FORM.RUNMODAL(DesiredForm);
use
DesiredForm.RUNMODAL;
as this was the original variable you passed the OkToEdit to. Soren Nielsen, moderator Integration/Developer NOLUG
duh. How often we forget the simple things. Thanks for the help. Rick