?
Solved

Help needed on label.caption

Posted on 1998-09-28
2
Medium Priority
?
151 Views
Last Modified: 2010-04-06
Hello,
I need some help with the following:

A length is input in mm...eg/83
A diameter is input in mm....eg/3.2
A button is selected called calculate..

The values are formulated as:
r=(diameter/10)*0.5
volume1=3.141*(r^2)*length/10
The answer becomes 0.6674 cm3
The answer is displayed in  (LABEL4.CAPTION)

Then the following calculation is done on the same form1..
A length is input in mm...eg 2500
A diameter is input in mm ...eg 6
# of cavities is input ......eg 2 (no units)
A pressure is input in Bar ..eg 85
A time is input in sec     ..eg 14
Another button is selected called calculate...

The values are formulated as:

r=(diameter/10)*0.5
volume2 = 3.141*(r^2)*length/10  ***displayed at label14.caption as a result***

total volume = (VOLUME1 * #ofcavities)+VOLUME2  ****Note volume 1 from above calculation***

normal liters = total volume/1000 * pressure

liters/min = (normal liters * 60) / cycle time

Question:  How do i pass (volume1 answer is a displayed result label4.caption)
           into the 2nd set of calculations.
           How do I pass (Volume2 answer is a displayed result label14.caption)
           into the above calculation even when its already used to
           display a result?

 Note: I am using edit boxes for number entry and label.captions to display
       results.
           Does someone an idea how to program these???
0
Comment
Question by:frw
[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 Comments
 

Author Comment

by:frw
ID: 1341088
Edited text of question
0
 
LVL 10

Accepted Solution

by:
viktornet earned 150 total points
ID: 1341089
Hi!

YOu do something like this.////


R := Something * StrToInt(Label4.Caption);

or

R := Something * StrToFloat(Label4.Caption);

Regards,
Viktor Ivanov
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

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…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

762 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