This is an XFCN that takes a string and strips everything out that would interfere with math calculations in HyperCard. It will leave a leading minus sign a decimal point and the numbers 0 through 9.
This is free. All I ask is to be notified of any suggestions or bugs found, and a credit line if you use it in released stacks. C source available on request.
Copyright 1988. All rights reserved.
Dwight Mayo
GEnie, MacNet - DMAYO
Compuserve - 76257,3303
-- part contents for background part 27
----- text -----
XFCN
-- part contents for background part 7
----- text -----
Syntax:
StripNum(Value)
Value can be any string of characters. StripNum will strip any char that is not between 0 and 9. It will leave a leading minus sign (i.e., if the minus sign is the first character) and a decimal point,