Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is wrong?
Message
From
18/07/2007 12:33:43
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01241327
Message ID:
01241616
Views:
24
This message has been marked as a message which has helped to the initial question of the thread.
>>Naomi,
>>
>>any chance of linked forms closing another form, thus causing the error ?
>>If so, you are smart enough to figure out one of the safe approaches
>>
>>regards
>>
>>thomas
>
>The only form that is opened is one form, AFAIK. Plus the toolbar, which may be referenced in the form. I'm not familiar with the application, it's not mine.
>
>I hope to tackle it in a minute once I finish with the reading of yesterday's messages + 42 new ones.

in your current code check
FOR lnCount = _screen.FormCount TO 1 STEP - 1
      assert _screen.FormCount=m.lnCount
      loForm = _screen.Forms[lnCount]  
...

but to be more secure go

Do while _screen.FormCount>0
     loForm = _screen.Forms[_screen.FormCount] 
regards

thomas

with a couple of exit branches
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform