Posts: 36
Threads: 14
Joined: May 2006
Hi all,
Are TRUE and FALSE defined anywhere as constants (literals)?
i.e., TRUE = 1 and FALSE = 0
or something similar.
Thanks,
avi
Posts: 12,095
Threads: 142
Joined: Dec 2002
TRUE is defined as 0xFFFF. It can be used with COM functions. FALSE is not defined.
Posts: 36
Threads: 14
Joined: May 2006
Ok, so there is no danger if I define for myself somewhere "global":
def TRUE 0xFFFF
def FALSE 0
?
avi
Posts: 12,095
Threads: 142
Joined: Dec 2002
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.