Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xbase DO CASE indention
Message
From
30/01/2013 15:41:24
 
 
To
30/01/2013 15:09:34
General information
Forum:
Humor
Category:
Other
Miscellaneous
Thread ID:
01564657
Message ID:
01564723
Views:
36
>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! :-)
Previous
Reply
Map
View

Click here to load this message in the networking platform