Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Xbase DO CASE indention
Message
De
30/01/2013 15:41:24
 
 
À
30/01/2013 15:09:34
Information générale
Forum:
Humor
Catégorie:
Autre
Divers
Thread ID:
01564657
Message ID:
01564723
Vues:
34
>Then you replace lcTest with
>
>lcTest = "This is a value " + ;
> "that continues around to here"
>
>or, if you want two separate lines
>lcTest = "This is a value " + chr(13) + ;
> "that continues around to here"
>
>and it's no longer a problem.


I'm right there with you, Dorris. Agree completely.


>I've never liked continuation lines like that - to many times
>I've been bitten in the butt by someone 'making the code pretty'
>and not paying attention to things like that. Then it becomes a
>maintenance problem when, in reality, it never should have
>been there in the first place.


Definitely.

The policy at most places I've worked has been something like "don't change anything that isn't broken" (otherwise I'd be fixing up a lot of stuff like that I keep coming across). As hideous as the mid-constant-character-semicolon line is ... it still works, even in VFP9. :-(

Another one that I come across often is:
IF someCond
    * Code goes here
ENDIF someCond

* They use "ENDIF someCond" rather than "ENDIF && someCond"
Same goes for:
DO CASE add your favorite comment here
Ugh! :-)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform