new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu