?
Solved

· String to Real

Posted on 1998-10-30
3
Medium Priority
?
1,040 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

752 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