Gennaro Frungillo Member Licensed User Longtime User Dec 4, 2013 #1 Hi, in vb.net for do it i write: B4X: For Each c as Char in MyTextVar.Chars 'reading and manipulating a char Next How i can do it in VB4A? Thanks.
Hi, in vb.net for do it i write: B4X: For Each c as Char in MyTextVar.Chars 'reading and manipulating a char Next How i can do it in VB4A? Thanks.
LucaMs Expert Licensed User Longtime User Dec 4, 2013 #2 dim OneChar as string for i = 0 to MyTextVar.Length-1 OneChar = MyTextVar.SubString2(i, i + 1) next Upvote 0
klaus Expert Licensed User Longtime User Dec 4, 2013 #3 You could replace OneChar = MyTextVar.SubString2(i, i + 1) by OneChar = MyTextVar.CharAt(i) Upvote 0
Gennaro Frungillo Member Licensed User Longtime User Dec 4, 2013 #4 LucaMs said: dim OneChar as string for i = 0 to MyTextVar.Length-1 OneChar = MyTextVar.SubString2(i, i + 1) next Click to expand... Grazie Luca! in effetti già avevo adottato questa soluzione ma non mi funzionava quando la stringa a lunghezza 1.....gestendo la cosa ora funge tutto Upvote 0
LucaMs said: dim OneChar as string for i = 0 to MyTextVar.Length-1 OneChar = MyTextVar.SubString2(i, i + 1) next Click to expand... Grazie Luca! in effetti già avevo adottato questa soluzione ma non mi funzionava quando la stringa a lunghezza 1.....gestendo la cosa ora funge tutto
Gennaro Frungillo Member Licensed User Longtime User Dec 4, 2013 #5 klaus said: You could replace OneChar = MyTextVar.SubString2(i, i + 1) by OneChar = MyTextVar.CharAt(i) Click to expand... Great! Upvote 0
klaus said: You could replace OneChar = MyTextVar.SubString2(i, i + 1) by OneChar = MyTextVar.CharAt(i) Click to expand... Great!