Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with data input and Dialog boxes 1

Status
Not open for further replies.

mop01995

Technical User
Oct 30, 2006
6
US
I need help making a script/dialog box where the user inputs a Latitude, Longitude, Cable length, and Antenna Height, then having the script take the cable lenght and multiply it by 4 to come up with a delay. Then I need all of the inputs placed into a transmit command ie.
transmit "GPS <Latitude> <Longitude> <Delay> <Height>^M"

I have been able to get the dialog box to work, but I am not able to make Procomm/Aspect do the multiplication. I end up with all kinds of compile errors. I think it is because my variables are all strings, and I can not figure out how to convert them to float. Thank you for your help.
 
Look up 'atof'

Code:
proc main
   string sTest = "12.5"
   float fTest
  
   atof sTest fTest
   usermsg "The float is: %8.2f" fTest

endproc
 
Thank You! for your help That is what I needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top