Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hungarian Notation cost you too much in VFP
Message
De
05/09/1997 18:06:41
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00048156
Message ID:
00048773
Vues:
27
> I try to declare major variables for any programmers unlucky enough to have > to work with my code in the future, but I'm grateful I can throw in a > > FOR n = 1 to 25 > > without worrying where n came from and was it a character variable before. Exactly my tune. I declare them by placing a comment in the preceding line - the semantics is far more important than syntax in this case. And if it's a variable which may have several types - well, that's in generalized utility routines, and is also commented. Of course, no one trusts a variable with a name like i, j, k, ..., m, n, JohnSmith to have scope more than couple of lines or one block - those are commonly known single-use variables, whose values are not necessarily preserved across function calls. > Now MY pet peeve is the need for a form-wide variable. Sometimes it just > isn't convenient to use a form property.... > > Barbara ....which reminds me of an unfinished thread on passing variable by ref to a CreateObjectED form's init, how's it scoped? Lost in space when init exits?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform