Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Dim a(10) as byte (compare bug)

Author
Message
Zep
22
Years of Service
User Offline
Joined: 31st Aug 2002
Location: From PA, USA. Currently reside in Hanoi, Vietnam
Posted: 13th Feb 2003 08:21
Be aware...comparing an array that has been dimmed "as byte" does not correctly compare:

try this as written, the 0's should not print but they do, take off the AS
BYTE from the dim statement and the 0's don't print as expected. The problem
seems to be in the "> 0" comparision differing between a plain dim and and
AS BYTE dim. I knew there was a bug with "as byte" somewhere, just took me a
while to hunt it down



Zep--
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 13th Feb 2003 13:33
There is a problem comparing BYTE variables... Hopefully it will be fixed soon.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2025-05-17 23:33:12
Your offset time is: 2025-05-17 23:33:12