Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bindevents 1

Status
Not open for further replies.

Bertiethedog

Programmer
Feb 8, 2007
118
GB
Can anyone help me with this very simple problem

I am trying to put this bit of code in the grid init method
Code:
bindevents(thisform.grid2.column1.header1,"click",oHandler,"this")

Ihave turned this forum upside down looking for an answer
 
oHandler is WHAT?
this? as method?


oHandler - this must be the OBJECT who will handle the event
this (????) - this is the method which is called when the event is happened.

I usually do this (in Init event of the FORM):
Code:
thisform.grid2.column1.header1,[Click],thisform,[HeaderClick],1)
I have HeaderClick method in the form.


Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
MVP VFP
 
It works but you have 5 parameters not 4

Thank you very much I have spent all afternoon trying to sort that one out

Richard
 
It works but you have 5 parameters not 4

The 5th parameter (as stated in the on-line help) is used for flags (they are additive) to tell VFP when to execute the delegate code:

1 tells VFP to call the event code before delegate code.

The default is the other way around (call the delegate code first)

Marcia G. Akins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top