Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Pascal
Expertise: Beginner
Jul 12, 1999

String to Float

Question:

How do I add two label values together and submit the answer to another label?

Label19.Caption := FloatToStrF(Table1Standard.AsFloat,ffCurrency,15,2)

Label20.Caption := FloatToStrF(Table1Zero.AsFloat,ffCurrency,15,2)

Label21.Caption := StrToFloat(?????????

Answer:

This is one of those things that you'll kick yourself for not seeing right away. The answer is:

FloatToStr(MyFloatValue);
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap