Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TRUE and FALSE defined anywhere as constants?
#1
Hi all,

Are TRUE and FALSE defined anywhere as constants (literals)?
i.e., TRUE = 1 and FALSE = 0
or something similar.

Thanks,

avi
#2
TRUE is defined as 0xFFFF. It can be used with COM functions. FALSE is not defined.
#3
Ok, so there is no danger if I define for myself somewhere "global":

def TRUE 0xFFFF
def FALSE 0

?

avi
#4
In most cases better to use 1 as true.

def True 1
def False 0

Use 0xffff only with COM functions, because some COM functions may not understand 1 as true.


Forum Jump:


Users browsing this thread: 1 Guest(s)