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.

Author
Message
ZomBfied
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 17th Sep 2003 03:22
Type of FOR statement variables must match the type of the value?

First, what exactly does this error mean? second It would help if it told me where or at least sort of where the error comes up.

Why can't the compiler tell what line of code an error pops up in?
brittd99
23
Years of Service
User Offline
Joined: 16th Sep 2002
Location:
Posted: 17th Sep 2003 08:15
It means if you are doing this type of for:
for a = 1.5 to 3.0 step .1

then is must actually look like this:
for a# = 1.5 to 3.0 step .1

without your code it is just a guess. But remember a is a variable type interger.
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 17th Sep 2003 09:21
fltX as float
intY as integer

for fltX = intY to 10
...yadda..
next fltX

won't work because fltX can't equal intY to whatever
FLOAT=INTEGER???NOPE

not saying this was the exact prob but is most likely something along these lines

-RUST-
ZomBfied
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 17th Sep 2003 11:50
Thanks. Now to see if I can figure out where it is...

Login to post a reply

Server time is: 2026-07-26 05:03:16
Your offset time is: 2026-07-26 05:03:16