* Strip leading zeros lcStr = "0000027890" * - get rid of all zeros to get the first none-zero character * - get position of the character. If it's 0 (all zeros string), set position beyond the string lcNoLeadingZeros = SUBSTR(lcStr, NVL(AT(LEFT(CHRTRAN(lcStr, "0", ""),1), lcStr),LEN(lcStr)+1)) ...>Please Note: VFP 8
TRANSFORM(VAL(value)) = "2"but as the user enters more characters to refine the filter, I need to be able to account for those non-numerics.