Help needed on label.caption

Posted on 1998-09-28
Last Modified: 2010-04-06
I need some help with the following:

A length is input in
A diameter is input in
A button is selected called calculate..

The values are formulated as:
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 2500
A diameter is input in mm 6
# of cavities is input 2 (no units)
A pressure is input in Bar 85
A time is input in sec 14
Another button is selected called calculate...

The values are formulated as:

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
           Does someone an idea how to program these???
Question by:frw

Author Comment

ID: 1341088
Edited text of question
LVL 10

Accepted Solution

viktornet earned 50 total points
ID: 1341089

YOu do something like this.////

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


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

Viktor Ivanov

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Intraweb download file link ? 1 153
Delphi: making a BW image transparent 10 57
firemonkey keyboard covers the controls 1 37
shape, triangle, dbctrlgrid 3 17
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

792 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