Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid subscript reference
Message
De
30/11/2006 11:43:24
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01173721
Message ID:
01173761
Vues:
13
Looks like I've been wasting odd lines of code for years then.

I could have *sworn* I've used that lazy way out in the odd noddy code I've written in the past. Let me see now ... was it in PLM/86?

Mind you, for readability, I'd still rather see something more meaningful, like:

lnNumFiles = ALEN(laFiles,1)

For I = 1 to lnNumFiles ...


>I doubt it's necessary or appropriate in any language.
>
>>
>>Hmmm, that's interesting. I've never bothered to test that. Is it not true that, at least in other languages, you could use code like that to (lazily) short-circuit the loop to get out of it?
>>
>>Anyway, as a general rule, I always do the func once and store to a var.
>>
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform