>Anyone know how to prevent to display the same called form when issue a do form comment ?
>example, when i click a button to do a form, the form will diplay. and if i click again the button it will display the same form again that mean i have issue two same form already.I only want it to display one time even though the user click how many time on the button.
Another way to do this is to create form properties (or an array) for each form you'll be launching. Suppose I have a from Child1, launched from Parent form.
Create property Parent.Child1, set to .NULL. Depending on how you launch Child1, you set the Parent.Child1 with NAME clause when you launch it, example
DO FORM Child1 NAME Parent.Child1
Now Parent.Child1 is type 'O', so you can check if TYPE('Parent.Child1') = 'O',
then form exists. An additional advantage is that you can refer to any controls on Child1 directly (and vice-versa), if needed ...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.