Find the length of a string, without using "len" function..?
x="String"
i=1
Do
y=mid(x,i,1)
if y="" then
exit do
else
i=i+1
end if
loop until y=""
msgbox i-1
Note: only a member of this blog may post a comment.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.