How do you get this string from this data? (The bolded part is what I want)
Id: 20 - Cow Amt: **10**
Id: 25 - Example Amt: **5**
I made this code to remove everything else except for the ID number
id = id.Replace("Id: ", "")
If (id.ToString.Length > 5) Then
id = id.Substring(0, id.IndexOf("-") - 1).Trim()
But now I want to also get the Amt: number as well. The outcome of the code so far is this:
20
It just prints out the id. But how do you get the 10? So it would look like this:
20 10