FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour truth table Give some help in "&"
Posts: 17
Joined: Mon Sep 10, 2012 01:55 PM
truth table Give some help in "&"
Posted: Fri Sep 21, 2012 06:53 PM
need to make a truth table my code works this way: :-)
Code (fw): Select all Collapse
#Include "Fivewin.ch"
 #command ~  => ! 
 #command ^  => .AND. 
 #command V  => .or. 
 #command <a> &'<->' <b> => if ( a=b , .t. , .f. ) 
 #command <a> -> <b> => if ( b , if ( a , .t. , .t.) , if ( a , .f. , .t. ))
FUnction main()

vpropos:="q ^ b"
 
if &vpropos  // Error
   msginfo("1")
endif

if q ^ b // no error
   msginfo("1")
endif


I read on some forums and saw that the macro does not work with the command # and # translante
could someone give me an idea, I need a job for the university


:-) :-) :-) :-) :-) :-)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: truth table Give some help in &quot;&amp;&quot;
Posted: Fri Sep 21, 2012 09:07 PM

Try with #define instead of #command and without the arrow

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion