My problem is this:
When ever I define one of the new variable types,
and try to use it in an if statement, it acts like it doesn't exist!
(when I say "new", I mean the var types that are new in
DBPro - i.e. WORD, DWORD, BYTE, BOOLEAN...)
- The only one that does work, is the "DOUBLE FLOAT",
but that's really just a BIGGED-UP version of DBV1's FLOAT/REAL var-thingy
Here's a (very long) code example...
rem Initialize vars to test..
ByteVar AS BYTE
IntVar AS INTEGER
BoolVar AS BOOLEAN
WordVar AS WORD
DoubleWordVar AS DWORD
FloatVar AS FLOAT
DoubleFloatVar AS DOUBLE FLOAT
rem Set-Up those vars..
ByteVar = 1
IntVar = 1
BoolVar = 1
WordVar = 1
DoubleWordVar = 1
FloatVar = 1.0
DoubleFloatVar = 1.0
rem Now I'll print their values..
PRINT "ByteVar = "; ByteVar
PRINT "IntVar = "; IntVar
PRINT "BoolVar = "; BoolVar
PRINT "WordVar = "; WordVar
PRINT "DoubleWordVar = "; DoubleWordVar
PRINT "FloatVar = "; FloatVar
PRINT "DoubleFloatVar = "; DoubleFloatVar
PRINT ""
PRINT "That's ALL GOOD....(Press a key)"
PRINT ""
PRINT ""
WAIT KEY
rem Now here's the wierd bit..
rem Here, we check the value of 'ByteVar'..
if ByteVar = 1
PRINT ""
PRINT "ByteVar = 1"
else
PRINT ""
PRINT "ByteVar ~= 1"
if ByteVar = 0
PRINT "ByteVar = 0"
else
PRINT "ByteVar ~= 0"
endif
endif
rem Now 'IntVar'..
if IntVar = 1
PRINT ""
PRINT "IntVar = 1"
else
PRINT ""
PRINT "IntVar ~= 1"
if IntVar = 0
PRINT "IntVar = 0"
else
PRINT "IntVar ~= 0"
endif
endif
rem Now 'BoolVar'..
if BoolVar = 1
PRINT ""
PRINT "BoolVar = 1"
else
PRINT ""
PRINT "BoolVar ~= 1"
if BoolVar = 0
PRINT "BoolVar = 0"
else
PRINT "BoolVar ~= 0"
endif
endif
rem Now 'WordVar'..
if WordVar = 1
PRINT ""
PRINT "WordVar = 1"
else
PRINT ""
PRINT "WordVar ~= 1"
if WordVar = 0
PRINT "WordVar = 0"
else
PRINT "WordVar ~= 0"
endif
endif
rem Now 'DoubleWordVar'..
if DoubleWordVar = 1
PRINT ""
PRINT "DoubleWordVar = 1"
else
PRINT ""
PRINT "DoubleWordVar ~= 1"
if DoubleWordVar = 0
PRINT "DoubleWordVar = 0"
else
PRINT "DoubleWordVar ~= 0"
endif
endif
rem Now 'FloatVar'..
if FloatVar = 1
PRINT ""
PRINT "FloatVar = 1"
else
PRINT ""
PRINT "FloatVar ~= 1"
if FloatVar = 0
PRINT "FloatVar = 0"
else
PRINT "FloatVar ~= 0"
endif
endif
rem Now 'DoubleFloatVar'..
if DoubleFloatVar = 1
PRINT ""
PRINT "DoubleFloatVar = 1"
else
PRINT ""
PRINT "DoubleFloatVar ~= 1"
if DoubleFloatVar = 0
PRINT "DoubleFloatVar = 0"
else
PRINT "DoubleFloatVar ~= 0"
endif
endif
PRINT ""
PRINT ""
PRINT "BUT LOOK AT THAT!!"
WAIT KEY
Here's the summary of what happens on my comp.
First, I initialize and set ALL THE VARIABLES TO 1,
then DBPro PRINTS THEM ALL as 1's.. - Which is good

Yet, in the IF STATEMENTS: the BYTE, the BOOL, & the WORD/DWORD don't seem to exist!
They don't register as 1's, or even 0's!"
Now, there may well be something wrong with my code - but I sure can't find anything!

If it is just my code, I'd appreciate it if somebody could tell me what I'm doing wrong. ^_^
On the other hand, if it's not just my code, it'd be great if the DBPro team could do something about this little bug - 'cause it's really annoying!

You probably already know about this problem - I didn't see anything about in the forums though - so if ya do already know about it, just ignore/trash this post.