Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BINDEVENT() and parameters
Message
 
 
To
04/05/2003 14:50:10
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00784704
Message ID:
00784724
Views:
15
Hi Jim,

I guess you missed following part of the BINDEVENT() help: "The delegate method must have the same parameters as the event specified in cEvent". If your events have 3 parameters and in the same order as in CustomMethodOfClass method, than you can bind them.

>Suppose that I have several events where the only line of code in them is along the lines of
=This.Parent.CustomMethodOfClass(param1, param2, param3)
Is there any way to use the BINDEVENT() function to eliminate that line of code (assuming that I put the BINDEVENT() calls in the control's Init()?
>
>There is apparently no provision for parameters in the function and the Help is basically mute on the subject except for the tantalizing words "You cannot bind to an event with parameters that are passed by reference.".
>
>thanks
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform