- Posted by msuclay at hotmail.com
Mar 17, 2001
First off, I would like to say that I am really new to programming and
have no experience in it. I have just learn everything from examples
that I have downloaded. However, I am stuck. I am trying to write a
procedure to get numerical data that is entered into text boxes. Once I
have the data, I want to do some calculations and output it to another
text box. I am getting the data fine, but once I try to output it, the
program goes crazy. The way that it is set up below, it will read in
values but not calculate them correctly. I have had my variables as
atom, object, sequence and just about everything. I have tried to write
a function, but have had no luck. Any and all help would be
appreciated.
Thanks,
Clay Smith
msuclay at hotmail.com
procedure onClick_threebutton()
object horse, volt, powerf, eff, output, total
horse = getText( threehorsetext )
volt = getText( threetextvoltage )
powerf = getText( threetextpowerf )
eff = getText(threetexteff)
total = ((746*horse)/(1.73*volt*powerf*eff))
setText( threetextload, total)
end procedure
|
Not Categorized, Please Help
|
|