Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question on BINDEVENTS
Message
From
21/10/2003 09:50:42
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Question on BINDEVENTS
Miscellaneous
Thread ID:
00840640
Message ID:
00840640
Views:
40
I tried this as a test, and maybe I just had the syntax wrong, but I figured I'd ask instead of going down a dead-end.

When I associate a method to an event with BINDEVENTS, can I set it up to pass a parameter to my custom method?

For instance, I have a grid with 6 columns. I want to run a method when the CLICK event fires for each column header. But I want to pass the controlsource of the column associated with the heading being clicked.

The 'old' snippet code that I had in each column heading CLICK event was...

ThisForm.SortColumnHeading(This.Parent.ControlSource)

When I issue BINDEVENT statements up front for the column headings, can I 'pass ahead' a reference to the column heading's controlsource as a parameter?

Thanks,
Kevin
Next
Reply
Map
View

Click here to load this message in the networking platform