Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing a form from within a procedure
Message
 
To
09/08/1998 23:28:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00125152
Message ID:
00125449
Views:
10
>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?
Richard,

Pass the form reference to the procedure as a parameter;

DO MyProc WITH THISFORM

From wihtin the form, in the proc;

LPARAMETERS poForm
poForm.Caption = "This is a test"
RETURN
Previous
Reply
Map
View

Click here to load this message in the networking platform