Solved

Help needed on label.caption

Posted on 1998-09-28
2
148 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 50 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

737 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