Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing a form from within a procedure
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00125152
Message ID:
00125155
Views:
18
>Whenever I have a procedure in a .prg file, I cannot get the code to reference a form. FoxPro tells me that the object form is not found. Anyone know how to get around this?

You can pass a reference to the form as a parameter to the procedure.

From the form
DO YourProc WITH THISFORM

In your prg
PROCEDURE YourProc
LPARAMETERS toForm
* Use toForm to refence the form properties or methods from your code
Steve Ruhl
CitiMortgage, Inc.
steven.ruhl@citibank.com Office
Steve@steven-ruhl.com Home
Previous
Reply
Map
View

Click here to load this message in the networking platform