Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a form not in focus
Message
From
05/11/2000 08:30:46
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00437475
Message ID:
00438108
Views:
11
If you are asking how do I make sure another form is open to do something try

LOCAL i
FOR i = 1 TO _Screen.FormCount
IF _Screen.Forms(i).Name = 'frmName'
_Screen.Forms(i).DoMySpecialMethod()
EXIT && we found it, no more reasons to continue loop
ENDIF
ENDFOR

John


>Hi all,
>
>What is the best way to move focus to another form by coding? My application usually has multiple forms opened at the same time. Moreover I sometimes have to call a function from another form while working in another. How to refer to a form that is not in the focus?
>
>Thanks in advance.
Previous
Reply
Map
View

Click here to load this message in the networking platform