Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error:1924 FORMS is not an object.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00090869
Message ID:
00090879
Views:
23
The for loop initial value is only evaluated first time into the loop, and you have to decrement through it because the forms array collapses itself down as forms go away. The loop counter was 2 in the post mortem dump that got delivered in my morning email.

Sometimes I'll get stupid errors like Columns is not an object in a builder that's working on a currently instantiated grid, cancel and run it again and it works just fine. Ah VFP you gotta love it. *g*

>What might be happening (and this is a guess) is because of the way, you're releasing the FormCount value is diminishing as you go. You might be hitting:
>
>_SCREEN.Forms[0]
>
>Which might cause this error. Trying assigning the .FormCount property to a variable and use that to count the number of times the loop needs to iterate.
df (was a 10 time MVP)

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

Click here to load this message in the networking platform