Re: [api-dev] Starbasic problem with nested loops

2007-09-09 Thread Helge Kraak
Am 09.09.2007 um 20:09 schrieb Johnny Rosenberg: 2007/9/8, Helge Kraak <[EMAIL PROTECTED]>: Am 08.09.2007 um 23:00 schrieb Cor Nouws: There are some things you can do to make it easier/better. - Add some procedures for dull/lengthy tasks; - Option Explicit - a must imo; - Seperators; - Gl

Re: [api-dev] Starbasic problem with nested loops

2007-09-09 Thread Johnny Rosenberg
2007/9/8, Helge Kraak <[EMAIL PROTECTED]>: > > > Am 08.09.2007 um 23:00 schrieb Cor Nouws: > > > There are some things you can do to make it easier/better. > > - Add some procedures for dull/lengthy tasks; > > - Option Explicit - a must imo; > > - Seperators; > > - Globals in the header (afaik, als

Re: [api-dev] Starbasic problem with nested loops

2007-09-08 Thread Cor Nouws
Helge Kraak schreef: Am 08.09.2007 um 23:00 schrieb Cor Nouws: The one-but last 'Loop' has to be and 'And If'. Pls test :-) I still don't understand why there has to be an additional 'loop' but above all it's important it's working now though I don't understand the logic behind this

Re: [api-dev] Starbasic problem with nested loops

2007-09-08 Thread Helge Kraak
Am 08.09.2007 um 23:00 schrieb Cor Nouws: There are some things you can do to make it easier/better. - Add some procedures for dull/lengthy tasks; - Option Explicit - a must imo; - Seperators; - Globals in the header (afaik, also a must); Thanks! Option Explicit was new to me. The other thing

Re: [api-dev] Starbasic problem with nested loops

2007-09-08 Thread Cor Nouws
Helge Kraak schreef: Thank your very much Cor! I removed the indents with the hope to resolve the error by deleting potential hidden text in the macro (I know it sounds strange but I was too desperate :-)). Aha ;-) There are some things you can do to make it easier/better. - Add some procedure

Re: [api-dev] Starbasic problem with nested loops

2007-09-08 Thread Helge Kraak
Thank your very much Cor! I removed the indents with the hope to resolve the error by deleting potential hidden text in the macro (I know it sounds strange but I was too desperate :-)). But still I'm confused because as I can see I have only 3 loops starting with "do" in the procedure but t

Re: [api-dev] Starbasic problem with nested loops

2007-09-08 Thread Cor Nouws
Hi Helge, Helge Kraak wrote: [...] The document can be found here: http://www.kraak.info/Hausarbeitsvorlage_mit_Chronologie.odt The name of the procedure causing the error is "datei_exportieren". [...] Making nice indents helps. A loop was missing. http://www.nouenoff.nl/downloads/Hausarbeitsv

[api-dev] Starbasic problem with nested loops

2007-09-08 Thread Helge Kraak
Hi, I'm facing an issue with nested loops in one of my Starbasic macros. I get the error message "Basic syntax error. Unexpected symbol: End Sub" although the procedure starts with "sub" and ends with "end sub". In the procedure are nested loops. I don't know if there is sth. wrong with m