Lou <lounotreal@[EMAIL PROTECTED]
> scribbled:
> Michael Mattias wrote:
>> "earthling" <somewhere@[EMAIL PROTECTED]
> wrote in message
>> news:Xns984FD1295C6EEsomewhereouttherecom@[EMAIL PROTECTED]
>>> "Michael Mattias" <mmattias@[EMAIL PROTECTED]
> scribbled:
>>>> "earthling" <somewhere@[EMAIL PROTECTED]
> wrote in message
>>>> news:Xns984FC33A7D737somewhereouttherecom@[EMAIL PROTECTED]
>>>>> how many loops are allowed within each other?
>>>>> using pbcc3
>>>> I never ran into a limit. My max depth of loop structures is maybe
>>>> six or seven. After that I get confused, primarily because I indent
>>>> for each loop and the source code starts exceeding the page width.
>>>>
>>>> What did you have in mind?
>>>>
>>> the following is 26 loops deep, how deep can you go? I am just
>>> curious if there is a limit to the depth using the different
>>> loops? DO/LOOP, FOR/NEXT. WHILE/WEND
>>
>> I don't believe there is any limit.
>>
>> But if you want to confirm that, contact the publisher...that info is
>> not in the help file (not that I can find, anyway,
>>
>> If you are an existing user of powerbasic products, write to
>> sup****t@[EMAIL PROTECTED]
>> If you are not an existing user, I think I'd try sales@[EMAIL PROTECTED]
>>
>> (FWIW, I've used PB compilers since 1991)
>>
>> BTW, there is an interesting construct you could use..
>> For a = 1 to 2
>> For b = 1 to 2
>> ....
>> for z = 1 to 2
>>
>> Next, ,,,,,,,,,,,,,,,,,,,,,,,, (25 commas)
>>
>>
>>
> Come on MM. You are a good programmer. This retiree thinks there has
> to be a better way <bg>
>
that was just a short example. there is code that is run between
each for/next that is applied to the next loop or skips the next loop.
if there is a better way then please do elaborate...


|