Hi dec82;
you could use a regular expression to pull the numeric data out.
<br /> ' Test data<br /> Dim testData As String = "abcd 36.2"<br /> ' String to hold the wanted info<br /> Dim numericValue As String = String.Empty<br /> ' A regular Expression to pull out the needed info<br /> Dim m As Match = Regex.Match(testData, "^.*?(\d+(?:\.\d+)?)")<br /> ' Test to see if the string had a numeric value on the end of it<br /> If m.Success Then<br /> ' Pull out the information<br /> numericValue = m.Groups(1).Value<br /> End If<br /><br /> MessageBox.Show("Numeric Value = " & numericValue)<br />
Fernando