Re: Returning the var type based on content of object
- Posted by znorq2 May 18, 2009
- 851 views
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..