?
Solved

typecast ??? need help please..

Posted on 2001-07-08
4
Medium Priority
?
221 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 320 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month14 days, 3 hours left to enroll

801 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