November 7th, 2004, 02:56 PM
Removing left Zeros
my app returns some strings...
Is there any function to remove the zeros on the left ?
November 9th, 2004, 02:54 AM
You can create your own or you could use "function Copy(S; Index, Count: Integer): string;" to copy only a part of that string.
All you have to do is get the index of the first character that is not "0" and then use the Copy function.
To get that index you can use the Pos function ("Returns the index value of the first character in a specified substring that occurs in a given string.")
November 11th, 2004, 05:44 AM
Thanx for help buddy, after all i figured out that posting 0012 to an access database will automatically convert it to 12(If Integer).
So there was no need to write such function...
Any way thanx for your atention...