Link to home
Start Free TrialLog in
Avatar of PruneBottle
PruneBottle

asked on

Cbuilder XE Ambiguity in function IntToStr

The compiler reports ambiguity between 2 functions IntToStr(int) and IntToStr(_int64)
ASKER CERTIFIED SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello there,
Since I had this problem multiple times...
Anyway you want to convert a number to its string representation for use somewere as I had...
First of all to use the string representation inside a control (TEdit, TLabel or whatever ) just assign it to the Text property without conversion. It usually works...
In any other case depending to what you want to display use IntToStr((unsigned int)value);
unsigned int is just as example. You can use whatever.
Using this way you are type casting the value inside IntToStr() function...

George Tokas.
Avatar of PruneBottle
PruneBottle

ASKER

Many thanks, it worked.