Re: for puzzlement

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi

Already been explained, but another way to look at it is that the variable in the for loop is created when the loop is run, so logically you shouldn't have already created it.

in my opinion, and to avoid loop confusion, don't repeat the variable names, so

integer rn_nmbr = 2  
integer rn_limit = 4  
  
procedure myloop(  )  
  for i = rn_numbr to rn_lmit do  
    ? i  
  end for  
end procedure  

Just another opinion!

Cheers

Chris

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu