Information générale
Catégorie:
Codage, syntaxe et commandes
No, you can't write to a method at runtime.
And you probably shouldn't be re-calling INIT(), either. <g> Create a custom method and call it from the init() and from your refresh-the-cursor method.
What you probably want for your textbox methods are custom textbox classes that you create containing your code. Use those in your grid instead of the default textboxes.
Dan
>Is it possible to add code to a method on a grid during run time. The grid is based on a cursor and most of the properties are set in the grid 'init' method but it has also got code added to the 'when' event of each 'text1'.
>
>I am recreating this cursor within the program to refresh it with updated data and I can get it all to work okay by forcing a grid1.init() except that the code in the 'when' events seems to get lost.
>
>Is there any way I can write code to methods of the grid while the form is running. Any help gratefully appreciated.
>
>Thanks
>
>Sue Lacy-Jones
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement