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.

Newcomers DBPro Corner / cannot close nest...

Author
Message
Hood
15
Years of Service
User Offline
Joined: 6th Jun 2009
Location:
Posted: 7th Jun 2009 22:21


i don't know what i am doing wrong
this has been bugging me for hours
it always says "cannot close nest at line...
can someone help me? I ned this by tommorow.
Wally Wombat
17
Years of Service
User Offline
Joined: 7th Jul 2007
Location:
Posted: 7th Jun 2009 23:53
Hi, your problem is the IF statements in the code. You are missing two ENDIF statements for each of the IF statements. Also at the end, in your code ELSE .... END is not required. I have attached a your code with the changes I made, hope this helps.

1 rem Scrabble variable table C16
2 sys 32655

Attachments

Login to view attachments
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 8th Jun 2009 00:04
you need to read up on how to use If/endif properly.



Hope that helps

Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@
Hood
15
Years of Service
User Offline
Joined: 6th Jun 2009
Location:
Posted: 8th Jun 2009 00:14
is this possible


Wally Wombat
17
Years of Service
User Offline
Joined: 7th Jul 2007
Location:
Posted: 8th Jun 2009 01:00



No it wont work, you have 2 IF statements and only 1 ENDIF. You could write it like this



1 rem Scrabble variable table C16
2 sys 32655
bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 8th Jun 2009 08:39
i would rather use cases instead of two nested endifs

*ding ding*
Wally Wombat
17
Years of Service
User Offline
Joined: 7th Jul 2007
Location:
Posted: 8th Jun 2009 12:07
To use it as a Select statement then I would propose:



1 rem Scrabble variable table C16
2 sys 32655

Login to post a reply

Server time is: 2024-09-28 06:18:49
Your offset time is: 2024-09-28 06:18:49