Information générale
Catégorie:
Codage, syntaxe et commandes
Tamar:
I take it my suggestion is a bad idea and I should not add it to the UT Wish List. Here's my issue.
Lets say I am setting up a default value of date() for a memory variable called dseldate.
If I were writing a .prg file I could initilize the variable at the beginnng of the .prg file with dseldate = date() and it would be in scope throughout the .prg.
Now in a form I have to create a form property called dseldate, initialize it in Init and throughout I have to call it thisform.dseldate.
Wouldn't it be more consident and easier if we could just initialize a variable in a form and have it in scope within the form without having to create a form property and call it thisform.dseldate all the time?
Is this a bad idea that is against proper programming style? I don't want to add this to the UT Wishlist if it is a bad idea.
Mike Smith
Précédent
Suivant
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