Thank you guys.
But this code, and the isnumber keyword do not do what the old basic 'VAL' did.
I need a keyword that can parse a string and return the numeric value even if that value is part of an alphabetic string.
Take string: "COM4". Using the above code you will not get '4' as the numeric part, you will get a 'false' value (0).
I am sure the old programming keyword VAL ("COM4") would return the numeric value of '4'.
Yes, I could write a routine that parsed the string but given that the VAL keyword has always been part of basic since the early DOS days I would prefer it be part of the math subset of keywords in this version of basic.

Very useful function and i miss it (although I don't miss MSDOS.
aGraham, your routine (below) would return a '0' if the string 'str' equaled: "COM4", whereas VAL(str) would return a '4'.
ub Val("COM4")
If IsNumber(str) Then
Return str
Else
Return 0 ...... RETURNS WITH '0' when it should return with '4'
End If
End Sub
FWIW: Your extra libraries are just excellent, Andrew. They have really enhanced b4ppc for me. Thank you so much.
