Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Powerbasic > Re: loops
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 10 of 14 Topic 206 of 276
Post > Topic >>

Re: loops

by earthling <somewhere@[EMAIL PROTECTED] > Oct 3, 2006 at 01:56 AM

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...
 




 14 Posts in Topic:
loops
earthling <somewhere@[  2006-10-01 23:11:30 
Re: loops
"Michael Mattias&quo  2006-10-01 23:16:46 
Re: loops
earthling <somewhere@[  2006-10-02 00:33:42 
Re: loops
"Michael Mattias&quo  2006-10-02 14:45:37 
Re: loops
Lou <lounotreal@[EMAIL  2006-10-02 11:44:55 
Re: loops
"Michael Mattias&quo  2006-10-02 15:53:44 
Re: loops
Lou <lounotreal@[EMAIL  2006-10-02 14:49:08 
Re: loops
earthling <somewhere@[  2006-10-03 01:49:51 
Re: loops
"Michael Mattias&quo  2006-10-03 11:43:10 
Re: loops
earthling <somewhere@[  2006-10-03 01:56:55 
Re: loops
James Beck <jim@[EMAIL  2006-10-03 10:43:21 
Re: loops
"Stan Helton" &  2006-10-02 20:56:42 
Re: loops
Jeff Slarve <jeffNOSPA  2006-10-02 19:16:19 
Re: loops
jberry@[EMAIL PROTECTED]   2006-10-03 09:04:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 2:34:29 CDT 2008.