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.

Bug Reports / Command out of place error

Author
Message
Damian001
16
Years of Service
User Offline
Joined: 26th Sep 2007
Location: Earth
Posted: 28th Jan 2013 10:14
Hi there,
I have been trying to make a program that calculates time differences.

For some reason DBP keeps giving me a "Command out of place error" when compiling even though I am absolutely sure I need to put an Endif statement in there to close my If commands.

Here's the code - sorry it's a bit long, most of it can be ignored, just zip down to the big IF commands - there are seven open IF commands but closed with only 4 Endifs - but wierd thing is, this compiles fine!! Even though I believe I need 3 more Endifs!!




Please help!

Thank-you

I love pizza
zeroSlave
14
Years of Service
User Offline
Joined: 13th Jun 2009
Location: Springfield
Posted: 1st Feb 2013 17:25 Edited at: 1st Feb 2013 17:27
Not sure what nested IF statements you are talking about. If you use the keyword THEN and end the IF line with the outcome, you don't need the ENDIF. Maybe this is the issue?



Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.

Login to post a reply

Server time is: 2024-03-28 18:50:04
Your offset time is: 2024-03-28 18:50:04