Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mouse wheeling
Message
De
14/08/2005 12:32:17
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01040785
Message ID:
01040805
Vues:
17
Readability?

I find one as easy to read as the other. Especially as "pseudo code".

"Better" is a highly personal measure.


>Martin,
>
>The nDirection cannot be both negative and positive at the same time. It's better to use DO CASE...ENDCASE for readability.
DO CASE
>CASE nDirection<0
>   * first action
>   * move container top
>CASE nDirection>0
>   * second action
>   * move container bottom
>ENDCASE
>
>
>>
>>If nDirection<0
>>   * first action
>>   * move container top
>>endif
>>if nDirection>0
>>   * second action
>>   * move container bottom
>>endif
>>
>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform