Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_screen.forms(x).release not working
Message
 
 
To
26/06/1998 20:05:37
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00112115
Message ID:
00112133
Views:
24
Peter,

Once you release form[1], form[2] becomes form[1] and son on. Your index increments to 2 whch releases what was form[3]. Use just the number 1 as your index in the release instead of i.

>I am using the _screen.forms(x).release() method as a way of releasing forms, and I am having some problems. I am using DO FORM and I end up with 4 or 5 forms open and I am using this code to release the forms, to basically return to the top form:
>
>FOR x = 1 TO _screen.formcount-1 && don't release the top form
> _screen.Forms(x).release()
>ENDFOR
>
>It always leaves 2 or 3 forms open, and formcount is either 4 or 5. So it is closing some and not others. Any ideas?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform