Thread
:
Strange subroutine output
View Single Post
#
2
(
permalink
)
01-31-2008, 04:00 PM
agraham
Basic4ppc Expert
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,700
Awards Showcase
Total Awards
: 2
It's because you have StrLength(inp) in your For condition. In the IDE it is calculated once at the start of the loop, in the compiler it is calculated each pass round the loop. This works
i = length - StrLength(inp)
For sdi = 1 To i
agraham
View Public Profile
Send a private message to agraham
Find all posts by agraham