I have created an application with four sliders. The value from each slider gets put into its own global variable. I then have a button where the four variables are entered into a formula. When you click the button the answer is displayed in a pop up window.
However, what i want to do is display the answer within a box (a field) already visible on the card. The code associated with the button is:
Code: Select all
global tfSessionDuration, tfMeanHR, tfRestingHR, tfMaximalHR
on mouseUp
answer "The TRIMP for your training session is " & round(tfSessionDuration * ((tfMeanHR - tfRestingHR)/(tfMaximalHR - tfRestingHR)) * ((2.71200^(((tfMeanHR - tfRestingHR)/(tfMaximalHR - tfRestingHR)) * 1.67)) * 0.86),0) & " arbitrary units"
end mouseUp