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 / Can Someone Explain

Author
Message
Ronaldaveo
23
Years of Service
User Offline
Joined: 1st Sep 2002
Location: England
Posted: 2nd Sep 2003 01:04
Why this doesnt work




and this does




took me ages to figure out what I had done wrong :/
Fallout
23
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 2nd Sep 2003 01:26
The # character tells DB the variable is a floating point variable/real number/whatever you want to call it. Same way the $ sign tells DB the variable is a string. You can't use a float to index an array (it must be an integer), hence why you were having problems.

Insiiiiiiiiiiiiiiiiiiiiiiiide!
Ronaldaveo
23
Years of Service
User Offline
Joined: 1st Sep 2002
Location: England
Posted: 2nd Sep 2003 01:28
Thanks

Login to post a reply

Server time is: 2026-07-23 17:11:37
Your offset time is: 2026-07-23 17:11:37