Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add events?!
Message
From
06/01/2000 10:35:00
 
 
To
06/01/2000 10:15:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00313888
Message ID:
00313908
Views:
72
>how to add a function or some coding into a object.event?!
>say, i want to run the command messagebox("test",0,"test")
>when the command1.click happen~!
>how to add into it by using coding~?

Wai Wai,
What you need to do is define your button as a class of type commandbutton. Then, within that class, you are able to define all the properties, events, and methods for your commandbutton class.

DEFINE CLASS myButton1 AS COMMANDBUTTON
&& DEFINE EVENTS HERE
ENDDEFINE

Paul A. Busbey
I.S. Department
Sparagowski & Associates
Paul A. Busbey
Victoria Insurance
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform