Since VAL() is available in VB6, the easiest way would be to obtain VAL(Right(Text,1)) where Text changes from "Hello" to "Value1=1" to "Value2=2" to "Value3=3".

The returned values in each case are 0, 1, 2, and 3.