Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Huge table and seek/indexseek commands
Message
De
09/08/2002 14:21:08
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
09/08/2002 11:40:21
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00687800
Message ID:
00688105
Vues:
40
>>I guess you could simplify the expression above (in VFP) to ceiling(log(N) / log(2)).
>
>Hmmm, are we running some sort of contest of getting the shortest code again :) ?
>
>Walter,

Not really, but I do like to look for shorter ways of coding different things.

OK, here is one "contest": you have to run three functions one after the other. func2() should only run if func1() is successful, and func3(), again, depends on the successful completion of func2(). Do you see an alternative that is shorter than two nested IFs?

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform