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.

Author
Message
DarkSpring
22
Years of Service
User Offline
Joined: 14th Dec 2002
Location:
Posted: 14th Dec 2002 22:34
Hey... To all u pros out there, this'd probably turn some heads and even make ya slap yerself; but hey, I'm a newbie, I'm trying to learn only my second programming language. So don't flame me if this question is so basic to all o you!

Whenever I try to compile a small amount of code, it will always tell me it could not close the nest. I looked all over the help files (and take note, this is the demo version, the full version I've ordered and is on its way) and I can't find crap!
Easily Confused
22
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 14th Dec 2002 22:52
Something like this will cause the error you discribe:

For i = 1 to 10
print i

because of the missing "next" command

For i = 1 to 10
print i
next i

check that your "for loops" end with a "next"

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
Easily Confused
22
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 14th Dec 2002 23:05
...In fact, you will get this error if you do not close the following loops

Do
Loop

Repeat
Until <condition>

While <condition>
endwhile

So you will have to check these also.

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)

Login to post a reply

Server time is: 2025-05-15 04:16:59
Your offset time is: 2025-05-15 04:16:59