> 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,
>
> Zedthough 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