Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do form with
Message
From
13/03/1998 13:22:36
 
 
To
13/03/1998 09:58:26
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00084441
Message ID:
00084524
Views:
22
>I have a form in which is called in a loop,
>
>For i=1 to nRetVal
> do form form_name with array[i]
>endfor
>
>The problem is that I want the form to be released before the next execution of the loop is processed.

Several others have noted that making the form modal will get the effect you want - I won't drive that point into the ground further.

what I do wonder is what your intent is in that loop methodology. What are you trying to that requires that you do this loop? In particular, is there anything that prevents you from saying:
loForm = CreateObject("form_name", @array)
loForm.Show()
and having the code in the form methods cover all the work for you.

Incidentally, needing the ability to send a single entity (as opposed to a set of variables) into the form counts as a legitimate answer.
David M. Stowell
Ravenslake Consulting
Chicago, Illinois

e-mail: davidstowell@ravenslakeconsulting.com
Previous
Reply
Map
View

Click here to load this message in the networking platform