Registered: 2009-02-13
Posts: 15
Loc: The Netherland
Hallo,
This time I have a funny error, when I was testing my script I got the error ENDSELECT without SELECT line 384. The funny thing about it is that I have a SELECT on line 75. But somehow he keeps on forgetting it. When I delete 100 lines the error doesn’t so up and the script works. Is there a maximum lines that can be between SELECT AND ENDSELECT?
#193073 - 2009-03-2305:14 PMRe: ENDSELECT without SELECT
[Re: Solid]
MartMart KiX Supporter
Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Nope there is no maximum number of lines that can be between Select and EndSelect.
This will happen when there is a something missing in one of the lines like a ( or ) or a quote. If it works after deleting the lines then most likely you also deleted the line that has a quote are bracket missing.
Registered: 2009-02-13
Posts: 15
Loc: The Netherland
Thank very much for your input, after that was cleared up. I started reading the script again (7 times) before found out I missed a endif . Pretty weird for an ENDSELECT without SELECT error when I was missing a ENDIF.
#193077 - 2009-03-2305:50 PMRe: ENDSELECT without SELECT
[Re: Solid]
Glenn BarnasGlenn Barnas KiX Supporter
Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
That is because the Select was open, then the If was open, then the Select was closed.. the interpreter threw the error because it expected an EndIf before the EndSelect.
It's all about the sequence..
Glenn
_________________________ Actually I am a Rocket Scientist!
#193085 - 2009-03-2307:56 PMRe: ENDSELECT without SELECT
[Re: Glenn Barnas]
NTDOCNTDOC Administrator
Registered: 2000-07-28
Posts: 11634
Loc: Space
LOL - Maybe. Well in any case. I removed the PostPrep code and re-posted the current version in it's entirety. Previous PostPrep version added too much text to the post that caused it to exceed the post limit size.
also, the postprep code (at least any which I have tried to) can't be copy&pasted from this board. either ppl are using bad versions of it, or the board is doing something to the post. but, removal of postprep from codes is currently a good thing.
#193090 - 2009-03-2308:45 PMRe: ENDSELECT without SELECT
[Re: Lonkero]
Glenn BarnasGlenn Barnas KiX Supporter
Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
I have no problem posting with and copying using the PostPrep and PPCL tools that I've posted in the Advanced forum. I use the same logic/UDF on my site without any issues. You can tell if it's the latest postprep if you View Source and look at the first line of the PostPrep data - it should show something like "< !-- PostPreped by PPCL.kix Version 2.1.0.0 -->".
The only board issue is the "almost 64K" storage limit.
Glenn
_________________________ Actually I am a Rocket Scientist!
#193104 - 2009-03-2412:07 AMRe: ENDSELECT without SELECT
[Re: NTDOC]
Glenn BarnasGlenn Barnas KiX Supporter
Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
PPCL and PostPrep both use the same Kix2Htm UDF. In fact, both utilities share about 85% of the same code - PPCL has a block of code that handles the command-line arguments, while PostPrep has the form and form handling code instead. All the rest are compiled from the same code.
The postings in the Vault were done with PPCL 2.2.0.0 and I can copy/paste into notepad from IE6, IE7, and FF. I think the core difference is that I post using HTML, not HTML+UBB. This was discussed at length last year.
If you post with PostPrep, you MUST post in HTML ONLY format. Enabling UBB support strips off the CRLF between the text. There is no issue with PostPrep if you use it correctly.
Glenn
_________________________ Actually I am a Rocket Scientist!