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 / #100013: Command out of place at line 361

Author
Message
orv
22
Years of Service
User Offline
Joined: 9th Sep 2003
Location: Chicago, IL
Posted: 2nd Oct 2003 07:03
when compile the included test program, I get the following error:
#100013: Command out of place at line 361

DB Pro's IDE did not highlight line 361, but rather line# 366!
this line is an endif.

I guessed that if might mean an endif without an if or a do without a loop, etc. I've gone several times over the code and cannot find anything like this.

Is this the meaning of the error? What does it mean? What am I doing wrong?

Any help would be greatly appreciated.
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 2nd Oct 2003 09:36 Edited at: 2nd Oct 2003 09:38
Guess what? I pressed F4 to compile and test the syntax and I get no such error!

The only time I get this error is when I accidently attempt to create an IF block with THEN like so:

If a=1 then
.
<some code>
.
endif


instead of:

If a=1
.
<some code>
.
endif


...unless my tired eyes are deceiving me, that does not appear to be the problem here.

Strange you're getting the error and I'm not

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
orv
22
Years of Service
User Offline
Joined: 9th Sep 2003
Location: Chicago, IL
Posted: 2nd Oct 2003 16:21
EC:
Thanks for your response.
I read your msg and thought: "Bad unprintable characters embedded that did not come through when I pasted the code into the forum!"

I tried deleting all the code from the IDE and then copying and pasting the code i posted on this forum back in the IDE! Alas it did not work!

I'm using Version 1.051 of Dark Basic Pro.
What version are you running?

This is really driving me crazy!
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 2nd Oct 2003 16:47
Works for me too. Using Upgrade 5.1b

Have you also updated to latest IDE as well?

If your mansion house needs haunting, just call Rentaghost!
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 2nd Oct 2003 17:05
Just looked through the code manually, and it looks Ok for IF/ENDIFs and DO LOOPs.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
Richard Davey
Retired Moderator
24
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 2nd Oct 2003 17:15
orv - try creating a new _projecct_ and pasting the code into that. See what happens.

The number of times I've seen the project file mess things up is not even remotely funny.

Cheers,

Rich

The sky above the port was the colour of television, tuned to a dead channel.
Your brain's just like any other appliance: it works better if you plug it in...
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 2nd Oct 2003 19:02
I use a product that "remembers" old deleted code. The only way to get shut of the damn stuff is to retain the function and put a comment and no code in it.

Obviously, this shouldn't apply to a DB Pro source file because it's just a text file.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 2nd Oct 2003 21:39
Quote: "What version are you running?"

I'm using 1.051 as well.

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 2nd Oct 2003 21:44
'The number of times I've seen the project file mess things up is not even remotely funny.'

I agree. It stifles laughter around the world. I'd grow a beard before I could finish telling you the amount of times my mouselook code has stopped working because of project files.

--Mouse: Famous (Avatarless) Fighting Furball
Read It: http://www.angryflower.com/itsits.gif
Learn It: http://www.angryflower.com/bobsqu.gif
DarkRider_Temp
22
Years of Service
User Offline
Joined: 27th Sep 2003
Location:
Posted: 2nd Oct 2003 22:52
Visual scope folding on my editor rules out any nesting errors

Http://www.LevelMaker3D.co.uk - Level Maker 3D and the alternate DarkBasic Editor
orv
22
Years of Service
User Offline
Joined: 9th Sep 2003
Location: Chicago, IL
Posted: 3rd Oct 2003 06:25
well, I don't think its the project file. RATS!
I copied the source into a new project and tried to compile and got the same ugly results.

I am now going to check my versions of software...

Please stay tuned!
orv
22
Years of Service
User Offline
Joined: 9th Sep 2003
Location: Chicago, IL
Posted: 3rd Oct 2003 06:47
BINGO-BON-ZINGO!!

It compiles now! The compiler was at the right version but the editor was at version: 1.0.6.1 ! Yikes!

I installed the two updates, first the oldest then the newest.

I loaded the project, hit F4, and SHAZAM! it compiled no errors!

I think this is sort of weird that updating the EDITOR not the COMPILER would cause it to COMPILE okay, but hey! It works!

Thanks for all the input guys.
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 3rd Oct 2003 13:36 Edited at: 3rd Oct 2003 13:37
The editor is not written by TGC, it was written by GuyS. He's apparently out of business now, but there are a couple of other people writing alternative editors.

Anyhow...glad to hear you're back up and running!

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php

Login to post a reply

Server time is: 2026-07-25 07:02:02
Your offset time is: 2026-07-25 07:02:02