Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Jojo Sabino
  Where is Jojo Sabino?
 Makati City
 Philippines
 Jojo Sabino
 To: Dexter Carlit
  Where is Dexter Carlit?
 Cabanatuan
 Philippines
 Dexter Carlit
Subject: RE: Add Codes into the events of Object that created on runtime
Thread ID: 106234 Message ID: 106257 # Views: 4 # Ratings: 0
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Thursday, September 7, 2006 10:13:59 AM         
   



> Hello Foxperts,
>
> Is it possible to add some syntax and execute that codes to the events of an object that was created on runtime.
>
> For example we have a grid during runtime and we added a Command button to one of its columns. How can we execute a code on click event of the added command button let say we want to display a MessageBox().
>
> For further information see the attached file below.
>
> http://www.foxite.com/uploads/a96275d9-6e40-4e2e-a502-5796a39d0ec6.zip
>
> Thank you,
>
> Zed


though i dont know what are you trying to achieve here..

if it is a custom command button.. i rather do what tushar suggest, the advantage is you can re-use it anywhere in your app..

or if you just want to mimic the click event of your grid1 -> button object, then you can use BINDEVENT() as boris suggest.



ynajoe

ENTIRE THREAD

Add Codes into the events of Object that created on runtime Posted by Dexter Carlit @ 9/7/2006 5:11:49 AM
RE: Add Codes into the events of Object that created on runtime Posted by Borislav Borissov @ 9/7/2006 9:30:17 AM
RE: Add Codes into the events of Object that created on runtime Posted by Jojo Sabino @ 9/7/2006 10:13:59 AM
RE: Add Codes into the events of Object that created on runtime Posted by Andy Kramek @ 9/7/2006 11:50:46 AM
RE: Add Codes into the events of Object that created on runtime Posted by Dexter Carlit @ 9/7/2006 2:44:59 PM
RE: Add Codes into the events of Object that created on runtime Posted by Andy Kramek @ 9/7/2006 4:16:30 PM
RE: Add Codes into the events of Object that created on runtime Posted by Dexter Carlit @ 9/7/2006 6:23:13 PM
RE: Add Codes into the events of Object that created on runtime Posted by Borislav Borissov @ 9/7/2006 7:07:18 PM
RE: Add Codes into the events of Object that created on runtime Posted by Dexter Carlit @ 9/7/2006 7:25:47 PM