Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing methods programatically?
Message
 
 
À
12/09/1999 22:02:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00263848
Message ID:
00263950
Vues:
31
>Nearly all of the time when a programmer thinks she needs to write code at runtime, it is because she can not think of a better way to do it. For example, Christian's needs could and should be taken care of with classes. Put the code that you want in a class definition, and add it at runtime.
>

Erik,

I hope you're right by saying that I don't even need to write code at runtime. The need for this came through a weired problem which I encountered with my grid:
The grid is instantiated within the form (in the form designer), and all my code and methods and properties are edited there. So is my GotFocus event etc.
What happens is, that when I change a few properties of the grid (RecordSource of the grid, Controlsource of the Columns, Width of the columns etc), then the Gotfocus events of my textboxes are gone! I didn't expect this behavior.
Maybe I do something else wrong?
Christian Isberner
Software Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform