Re: Returning the var type based on content of object

new topic     » goto parent     » topic index » view thread      » older message » newer message
mattlewis said...
znorq2 said...

There is one question; Why doesn't this fail when there is a string format with only one character, i.e. "x"...? The for "cnt = 2 to..." shouldn't be able to continue, as there is no second element in a "x" string..

The for loop never executes, so execution jumps right to the final return statement.

Matt

Matt,

So, counting downards without the for's "by -1" parameter, results in the code block not being executed at all? I guess that is evaluated before the for loop starts the execution?

Kenneth / ZNorQ Learing something new every day..

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

Search



Quick Links

User menu

Not signed in.

Misc Menu