Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Logical fields
Message
From
27/10/2005 19:18:02
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
27/10/2005 12:09:18
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP3
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01062663
Message ID:
01062819
Views:
14
>hi i've a big proble i wich make union to 2 fields logicals how i make this example.
>
>field a l
>field b l
>
>select a+b from table1
>
>but that instruction make a proble . tks.

You can't add two logical fields like that. Depending on what you want to achieve, you might select one of the following:
select a and b as BothFields && .T. if both are .T.
select a or b as AnyField && .T. if any of the two, or both, are true
select iif(a, "X", "-") + iif(b, "X", "-") as TextResult
  && text representation, with "X" for true, and "-" for false
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform