Solved

· String to Real

Posted on 1998-10-30
3
1,029 Views
Last Modified: 2008-02-01
How can I do this:

Realvar:= Edit1.Text; ( StrToInt doesn't work )

and viceversa.

bryan
0
Comment
Question by:bryan7
3 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 0 total points
ID: 1345094
yo bryan,

RealVar := StrToFloat(Edit1.Text);

viceversa FloatToStr or FloatToStrF

Regards, Zif.
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 1345095
hi bryan7,

an other solution is to use the Val-Procedure

Val(Edit1.Text,RealVar,ErrorCode)

meikl
0
 
LVL 3

Author Comment

by:bryan7
ID: 1345096
thanx
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question