Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

typecast ??? need help please..

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

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

596 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