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 / severe error!

Author
Message
nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 10th Jan 2006 22:50 Edited at: 10th Jan 2006 22:51
I get a severe error in my code in the following section:

However if i use a ` in the line above i dont get the error.
Any ideas what is wrong?

I am a Christian and I know that God loves me. That is what makes my life so great!
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 10th Jan 2006 22:55
to me it says :

no such array dimention used in line 3


nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 10th Jan 2006 22:58
thats cos u wont have made the array :S that is only a small snippet of my code

I am a Christian and I know that God loves me. That is what makes my life so great!
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 10th Jan 2006 23:01
ouh..sorry..nope i don`t know....


nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 10th Jan 2006 23:06
lol ok thx anyways

I am a Christian and I know that God loves me. That is what makes my life so great!
UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 10th Jan 2006 23:27
You first need to close the file, and what line are you talking about?


Hippopotomonstrosesquippedaliophobia-Fear of long words
nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 10th Jan 2006 23:33
thats true and on the code snippet i put <<< error here at the end of on eof the lines sorry forgot to metion that

I am a Christian and I know that God loves me. That is what makes my life so great!
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 11th Jan 2006 07:04
Does the file you are trying to write to already exist?

nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 11th Jan 2006 11:34
yes but i have code previously to detect and delte it. Also the number going into the equation are correct as it draws the boxs on the screen befre it does this. so im really not sure what could be wrong HELP!

I am a Christian and I know that God loves me. That is what makes my life so great!
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 11th Jan 2006 11:51
Whats the actual error you get? Is this error on the same line if you rem off "sync on"?


nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 11th Jan 2006 12:10
"runtime error at line 122. Severe exception! at line 122"
And i tryed reming it out and it still errors and on the same line. if u rem the line above the error line (the one indicated on me code on the first post) then it doesnt error.

I am a Christian and I know that God loves me. That is what makes my life so great!
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 11th Jan 2006 12:31
Its because you're trying to subtract a string like it's a number.

This gives the same error:


You can use one "str$" and do the math within the "str$". This works because anything inside "str$" remain as numbers.




nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 11th Jan 2006 12:36
YES! thank you so so much

I am a Christian and I know that God loves me. That is what makes my life so great!
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 11th Jan 2006 12:43
Np.


Login to post a reply

Server time is: 2025-05-23 00:17:40
Your offset time is: 2025-05-23 00:17:40