Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with _screen.formcount and toolbars.
Message
From
22/06/1999 04:56:47
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Problems with _screen.formcount and toolbars.
Miscellaneous
Thread ID:
00232368
Message ID:
00232368
Views:
40
I have just upgraded from VFP3 to VFP6 and are now doing some changes in my program to make it work in VFP6. And the problem I have is when i'm closeing down my application and I run the following code:

nFormCount = _screen.formcount

for i = 1 to nFormCount
_screen.activeform.release()
endfor

in VFP3 it worke'd just fine, but now it seem like _screen.formcount counts my toolbar as a form to and then the _screen.activeform.release() gives the following errormessage "ACTIVEFORM is not an object". How can I get around this? (The toolbar has to be closed last becouse otherwise my forms will complain).

Thanks in prior!

/Mårten Törnquist (marten@megasol.se)
---( Mårten Törnquist )---
Next
Reply
Map
View

Click here to load this message in the networking platform