TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: THOMAS GEIGER
from: TIM HUTZLER
date: 1996-07-17 11:14:00
subject: Re: FOR/NEXT no work wit

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.