Solved

typecast ??? need help please..

Posted on 2001-07-08
4
214 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
  • 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now