Trim zeros from front of string ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there an easy way to trim zeros from the front of a string? The Trim
function will only trim spaces.
 
Val() returns as much of the numerical value from the beginning of a string
as it can (not including any leading zeros).

Val("00123460")
and
Val("1234 60th Avenue")

both return 123460 (as a number).

HTH
 
Back
Top