 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Jul 31, 2003 1:07 am Post subject: Re: a really curious thing... |
|
|
"b" <borland.public.cppbuilder.vcl.components.using> wrote
| Quote: | int a = atoi(EncodeSize(OpenDialog1->FileName, 20).c_str()); //it
return a int value
int b = atoi(EncodeSize(OpenDialog1->FileName, 23).c_str()); //it
return a int value
|
Since you're working with AnsiString, why not just use StrToInt/Def()
instead?
int a = StrToIntDef(EncodeSize(OpenDialog1->FileName, 20), 0);
Or
int a = EncodeSize(OpenDialog1->FileName, 20).ToIntDef(0);
Gambit
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|