Solved

typecast ??? need help please..

Posted on 2001-07-08
4
220 Views
Last Modified: 2010-04-06
hey guys i need your help.
i'm new to delphi and right now i'd like to do a typecast. is this possible in delphi at all ?
problem:
in my object there is a property of the type REAL. this should be filled with the content of a TEdit-Element.
How to do this ?
0
Comment
Question by:Mighty_Moses
[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
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
ITugay earned 80 total points
ID: 6262536
Hi Mighty_Moses,

YourReal := StrToFloat(Edit1.Text);

----
Igor.
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 6262543
Try this:

try
  r := StrToFloat(Edit1.Text);
except
  showmessage('conversion failed');
end;
0
 

Author Comment

by:Mighty_Moses
ID: 6262547
Thanx for the quick answer !
0
 
LVL 9

Expert Comment

by:ITugay
ID: 6262548
eps:-)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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