Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameters
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00101751
Message ID:
00101778
Views:
26
Jose,

>How can I pass a parameter to a CListObjEditForm form ?

There are two ways to accomplish this.

1) If you only need to reference a value in the calling form, from within the CListObjEditForm you can reference the calling form by means of Thisform.oCallingform..

2) If you truly want to pass a parameter, you can override the default method and pass a new parameter as follows:

*--- Duplicate the default parameters and add your own at the end
LPARAMETERS tlAddMode, toCallingForm, toCallingFormListObj, tuMyNewParm

*--- Possibly save the value of the parameter
ThisForm.uMyNewParm = tuMyNewParm

*--- Run the default method and pass the parameters
RETURN DODEFAULT(tlAddMode, toCallingForm, toCallingFormListObj)

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform