typecast ??? need help please..

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 ?
Mighty_MosesAsked:
Who is Participating?
 
ITugayConnect With a Mentor Commented:
Hi Mighty_Moses,

YourReal := StrToFloat(Edit1.Text);

----
Igor.
0
 
EpsylonCommented:
Try this:

try
  r := StrToFloat(Edit1.Text);
except
  showmessage('conversion failed');
end;
0
 
Mighty_MosesAuthor Commented:
Thanx for the quick answer !
0
 
ITugayCommented:
eps:-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.