Hello,
I would like to retrieve the numeric part of the following string into 2 integer values:
dim y as integer, h as integer, mystr as string
mystr="Year 2001 Mileage 2500 m/h Power "
2001 would go to the variable y, and 2500 to the variable h
i gather that if i use replace to gtrim the string og the non numeric values could work, but what if i encounter a mystr with diferent words in it?
I would like to retrieve the numeric part of the following string into 2 integer values:
dim y as integer, h as integer, mystr as string
mystr="Year 2001 Mileage 2500 m/h Power "
2001 would go to the variable y, and 2500 to the variable h
i gather that if i use replace to gtrim the string og the non numeric values could work, but what if i encounter a mystr with diferent words in it?