Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form refresh problem
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00337991
Message ID:
00337997
Views:
12
>I have three forms. Form1, Form2, Form3. I start Form1 from a program "do form Form1".
>On Form1 there is a command button that starts Form2 - "do form Form2". On Form2
>there is a command button that starts Form3 - "do form Form3". With Form3 active
>I press another command button that has the code "Form1.refresh". That works fine.
>There is yet another command button that the code "Form2.refresh". When I press
>that button I get an error that says "Object Form2 not found". What am I doing wrong?

Joe, try to run your forms using NAME clause and address them by that name.

DO form myForm1 NAME FirstForm
FirstForm.Refresh()
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform