Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to access form Object method in .exe
Message
From
15/04/1998 05:06:51
Steve Camsell
Windmill Associates
Bath, United Kingdom
 
 
To
15/04/1998 04:50:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00092057
Message ID:
00092063
Views:
27
Rafal,

Here is one solution, although the technique that you implement depends upon the structure of your app.

LOCAL loFormReference, lnFormNo
FOR lnFormNo = 1 TO ALEN(_SCREEN.Forms)
IF _SCREEN.Forms(lnFormNo).Name = "YourFormName"
loFormReference = _SCREEN.Forms(lnFormNo)
EXIT
ENDIF
ENDFOR
loFormReference.Method(id_Table)

If you don't like this, you could also try looking at doing your DO FORM using the NAME clause, but as I said, it depends upon how your app is structured.

Hope this helps

>In AfterRowColChange of gridin one form I have:
>if v_wizyty_p = .t. &&if form is visible
> name.method(id_table) &&accessing method of the second form
> this.setfocus &&return to form
>endif
>
>Object name is based on formset class.
Steve Camsell
Development Consultant
Steve.Camsell@Windmill-DBM.Co.Uk
Previous
Reply
Map
View

Click here to load this message in the networking platform