Solved

· String to Real

Posted on 1998-10-30
3
1,034 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

740 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