char value to string in string builder in vb.net Dim ss As String = "AHKLJ47815" ' take any string
Dim finalstring As String
For i = 0 To ss.Length - 1
value = AscW(ss(i)) 'now take value of that char at i index in int
If value > 100 Then
finalstring = "0"+ value
Else
finalstring = value
End If
Next
now the finalstring should result the value in integer of all chars but if the value of that particular char in integer is more than 100 then keep it as it is if less then append 0 before that 2 digit integer and make final string contains the all value of chars
something like this
String = "ABCo21"
now finalstring should have = "065066067111049050