Data Access Worldwide Knowledge Base

Article ID 2139
Article Title HOWTO: XOR (exclusive or) in Visual DataFlex
Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2139
KBase Category VDF (GENERAL)
Date Created 07/12/2005
Last Edit Date 07/13/2005


Article Text
XOR or "exclusive or" is a logical operator that returns a true value if one, but not both, of its operands is true.


Visual DataFlex does not have a built-in XOR function, but here is a function for this functionality you may use:

a xor b = ((a or b) and (not(a and b)))


Contributed By:
Igor van Houttum
Company: Data Access Europe
email: igor.van.houttum@dataaccess.eu
Web Site: http://www.dataaccess.eu


Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.

The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.