The title is correct. For some reason "150" in a string line gets converted to """150""" by VB. Why? and when you use IsNumeric it returns false. It is within a string in a text file.
"TestMode-Nothing.mss","1","150","N/A","N/A","6.081","503.659"
What could be simpler? When viewed in the watch window ary(2) = """150""". I tried a RegEx pattern, (?<=,)(\d{2,3})(?=,), but that would return no matches. Look behind and look ahead decided not to work. So I thought to escape the commas but that didn't change anything.
Where do the additional " come from? How can I get that value?
Thanks,
"TestMode-Nothing.mss","1","150","N/A","N/A","6.081","503.659"
ary=line.Split(",") If IsNumeric(ary(2) Then 'Do some stuff end if
What could be simpler? When viewed in the watch window ary(2) = """150""". I tried a RegEx pattern, (?<=,)(\d{2,3})(?=,), but that would return no matches. Look behind and look ahead decided not to work. So I thought to escape the commas but that didn't change anything.
Where do the additional " come from? How can I get that value?
Thanks,