MhdBoy Member Licensed User Longtime User Aug 28, 2015 #1 Hi there, i have problem with String CharAt method in my app. my code: Dim sText as String = " <b> " If sText.CharAt(i) = "<" Then If sText.SubString2(0,i) <> "" Then Log(sText.SubString2(0,i)) End If End If error: how i can fix this error?! tnx a lot
Hi there, i have problem with String CharAt method in my app. my code: Dim sText as String = " <b> " If sText.CharAt(i) = "<" Then If sText.SubString2(0,i) <> "" Then Log(sText.SubString2(0,i)) End If End If error: how i can fix this error?! tnx a lot
HotShoe Well-Known Member Licensed User Longtime User Aug 29, 2015 #2 I'd guess that you are using a for loop to go through the string like: for i = 0 to stext.length where it should be: for i = 0 to stext.length - 1 Hard to know without seeing more of the sub though. --- Jem Upvote 0
I'd guess that you are using a for loop to go through the string like: for i = 0 to stext.length where it should be: for i = 0 to stext.length - 1 Hard to know without seeing more of the sub though. --- Jem