Click here to Skip to main content
15,169,069 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am trying to convert the to 
but wasnt succesful .I was trying Trim and TrimStart but didnt succeeed any
suggestion on this please

basically my conversion shoud be as follows: --> -->

What I have tried:

i have tried using trim and trim start

also tried
Dim lstrSIOSchemaVersion = cboConfig.Items(0)
lstrSIOSchemaVersion = lstrSIOSchemaVersion.Replace("0", String.Empty)

it worked but thinking if there is a better way
Updated 2-Nov-20 3:12am

Use the Version Class[^]:
Dim lstrSIOSchemaVersion As String = cboConfig.Items(0)

Dim ver As Version
If Version.TryParse(lstrSIOSchemaVersion, ver) Then
    lstrSIOSchemaVersion = ver.ToString()
End If
Simplest would be to use Strings.Split[^], convert the array to integer, and then Strings.Join[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900