Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
True or False
Message
From
16/01/2007 11:15:37
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01185857
Message ID:
01185920
Views:
11
>>I once had a case of a logical expression which extended over eight lines (in Cobol :). It took me good ten minutes to reduce it to an equivalent two-liner. The person who wrote that was an economist. That taught me that while I have the feeling the logical expression are easy to do, I may not share that feeling with all the people :).
>
>The same is true for the expressions after WHERE, FOR, CASE and so on. It is my habit to present all combined ´parts´ of the expression not only between parentheses, but also on separate lines.

These are logical expressions too, so they do fall into the same category. And I also tend to split them over lines for clarity's sake - sometimes I even break an iif() if it's longer than my usual line length.

>Example:
>
select ;
>   * ;
>   from sometable ;
>   where nose > 4_inch ;
>   or    mouth > 3_inch ;
>   or    ( ears > 5_inch and hair > 30_inch ) ;
>   or    hand > 10_inch ;
>   into cursor c_table
Now this does look like a freak table :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform