Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which Is More Readable To You?
Message
De
05/03/2008 12:33:53
 
 
À
05/03/2008 10:51:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01298471
Message ID:
01299001
Vues:
20
>>Beautify is your friend!
>
>Yes, it is, until you work for someone who wants the ending commands to be indented. For example

I must admit, that's one I've never seen before (and I've seen LOTS) < s >


>
>
>do while somecondition
>     if thiscondition
>          process this
>     else
>          process that
>          endif
>     command
>     command
>     select data
>     scan
>          if anothercondition
>               process thisstuff
>               endif
>          endscan
>     enddo
>another condition
>
>
>
>also had the habit of having Case statements do things.....as in
>
>
>do case
>     case !seek('key','file')
>          (commands)
>     case file.field = value
>          (commands)
>     endcase
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform