Re: Phix loop variables and scope

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

Hi,

Yeah, that'll never work. The loop variable ahouldn't be declared, and once it's out of the loop, it's lost. you can jump out of the loop earlier, recording the loop variable into a local or global variable just before you do though, but the scope of x is only in the loop.

Cheers

Chris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu