There’s a field I’m working with that looks like this: 000A1234 I need to grab the value but w/out the zeros. As far as I know Trim is only for spaces.
Thanks
There’s a field I’m working with that looks like this: 000A1234 I need to grab the value but w/out the zeros. As far as I know Trim is only for spaces.
Thanks
Subject: Is it possible to trim leading 0’s with Lotusscript?
If you just want to remove the leading zeros then one way of doing this could be:
While (Left(myString,1) = “0”)
myString = Strright(myString,"0")
Wend
Subject: Is it possible to trim leading 0’s with Lotusscript?
I guess if it starts with a “0” you could step through the string until you find a character that is not “0” and then use Mid$ to grab everything that char forward.