General information
Category:
Coding, syntax & commands
>i know this method, but what i want to do is use coding method to declare a object event~!
You can't do that. This is VFP not C++ or Java! You can only repond to events that are raised by the VFP environment.
You can do some psuedo event creation with access and assign events.
But, good thing is, you don't need to declare the Click event for a CommandButton, but, if you want to respond to a DoubleCLick... you would have to kludge it... perhaps on the mouseup set a property that there was a single click... check it... if mouse up fires... and single click is true... perhaps check to see if the difference is within the _DoublClick time frame, if it is call a double click method that you created.
Bottom line though... if the event is not listed on the property sheet, you can't respond to it.
BOb
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only