.net - How to get previous characters in string -
i creating function allow me previous character in string during loop .
private sub tsbutton_click(sender object, e eventargs) handles tsbutton.click each ch char in htextdisplay.text msgbox("the previous characters here") 'carry out function here next end sub so if htextdisplay.text "abcdefg" msgbox show "a" "b" "c" .....
on other hand may better if check if there character behind character in function of loop
dim previouschar char = "" each ch char in htextdisplay.text msgbox ch & " - previous character = " & previouschar 'other processing previouschar = ch next
Comments
Post a Comment