TH> Well, I just discovered that a FOR/NEXT loop doesn't work with
> WORD data types.
TG> It doesn't work with BYTE data types, too.
TG> I think that it could be because of the 'STEP -1' statement, BYTE
> and WORD can't handle the negative value of '-1', OR probably
> only the PwerBASIC Compiler can't... BUT it should be fixed,
> you're right on that... ;)))
This we agree on.
While PB probably thought that by using the same type for the
increment/decrement count was more effient (avoids type conversion),
they could just have easily used a different instruction SUB instead
of ADD.
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 916-893-8079 * (1:119/88)
|