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 Discussion / Maximun number of parameters in data statment

Author
Message
No Time To Code
15
Years of Service
User Offline
Joined: 22nd Dec 2008
Location:
Posted: 15th Dec 2009 05:01
Does DBC have a maximum number values per line of data statment? I'm trying to read in a 40x40 data statment into the program and getting the following error:

"Syntax error: Exceeds maximun number of parameters"
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 15th Dec 2009 05:16
I think 32 values per line is the max and 9999 total data items.

If you are creating a series of data statments from an array to be read in later in the source code of another program,
try



Enjoy your day.
pictionaryjr
15
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 15th Dec 2009 05:20 Edited at: 15th Dec 2009 05:21
Yes, I believe its 28. I remember running into it a little while back.

I believe this is as long as they get.

data 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

EDIT:
Didnt read what latch said but go with it over me lol
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 15th Dec 2009 05:33
Just a NOTE on using FLOAT values in data statments. If you have whole values being read into a FLOAT variable, make sure the number has a .0 or it will only be read as 0:



vs



Enjoy your day.
No Time To Code
15
Years of Service
User Offline
Joined: 22nd Dec 2008
Location:
Posted: 15th Dec 2009 20:50
Thanks Latch and pictionaryjr.

In light of those limitations I think I'm going to go with saving and loading the data from an array.

Login to post a reply

Server time is: 2024-05-08 05:48:23
Your offset time is: 2024-05-08 05:48:23