General information
Category:
Coding, syntax & commands
Title:
How to strip / delete leading zeros ...
Environment versions
Network:
Windows 2003 Server
Am doing data conversions with VFP 9.
Need to strip leading zero (or zeros) from a character field (and ONLY leading zeros), then convert to a numeric.
VAL('00203') returns 23 instead of the desired 203
VAL('2098') returns 298 instead of the desired 2098
VAL('0298') returns the desired 298 ...
Can't help thinking that I am missing something, somewhere.
Thoughts much appreciated.
Best,
Harold ...
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only