Display answer in field rather than popup?
Posted: Mon Sep 28, 2009 9:35 pm
I'm a newby so here goes...
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:
How might i change this so that it displays within a box (a field) within the card, rather than in a popup window?
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