Re: number beginning with zerro
- From: "Chris.Cheney" <Chris.CheneyXXNOSPAMXX@xxxxxxxxx>
- Date: Sat, 28 Jul 2007 12:14:57 GMT
"Gert Baars" <g.baars13@xxxxxxxxx> wrote in news:TTFqi.2225$Rv4.368
@amstwist00:
"surena" <surena_abari@xxxxxxxxx> wrote in message
news:1185602037.288281.145160@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I put a number in an edit box and want to change it to a number. I
used strtoint function. It did
not work with phone numbers like 05713234, apparently due to 0. Why?
This number equals to 5713234. But Delphi does
not agree!
Surena.
Look at the stringfunctions in Delphi help.
There is a copy function so the leading
digit can be skipped if zero. Then
use strtoint on the copied string.
StrToInt works perfectly well in Delphi:
ShowMessage(Format('%d', [StrToInt('05713234')]));
displays 5713234 as expected. There is no need to use Copy.
.
- References:
- number beginning with zerro
- From: surena
- Re: number beginning with zerro
- From: Gert Baars
- number beginning with zerro
- Prev by Date: Re: number beginning with zerro
- Next by Date: Re: number beginning with zerro
- Previous by thread: Re: number beginning with zerro
- Next by thread: Re: number beginning with zerro
- Index(es):
Relevant Pages
|