Page 1 of 1

BOOLEAN

Posted: Tue May 03, 2005 11:31 am
by SebMcClouth
How can you assign this in QuickBasic, I've seen it before.
I need to state e.g.

Code: Select all

IF SHUTDOWN = TRUE THEN
   SHUTDOWN
ELSE
    GOTO BEGIN
END IF
grtz

Posted: Tue May 03, 2005 6:00 pm
by Z!re
At the top of your code:

Code: Select all

CONST FALSE = 0
CONST TRUE = NOT FALSE
There's no "true" boolean type in QB

Posted: Wed May 04, 2005 12:11 am
by SebMcClouth
Thanks, that's BOOLEAN enough to me.

grtz