Re: converting between extended and string types?
Posted by WAllison on August 07, 2002 at 20:07:33:
In Reply to: Re: converting between extended and string types? posted by Rbrrneck on August 06, 2002 at 11:40:40:
: : Hi
: : I wish to display the result of a sum (which is an extended data type) in a label but the debugger says string and extended are incompatible data types - how can I make the extended into a string?
: : Any help much appreciated!
: : Jimbo :)
: Try putting label1.caption:=string(the sum) or
Try using String_var := FloatToStr(The sum, ffGeneral);
- well something like that - floattostr/floattostrf are the best ways to convert extented/real data types...