Can some one shed some light in to this, I need to do calculation where I some number in to a Edit field . result should be shown in a label view
Dim edtNumber As EditText
Dim lblVis1 As Label
Dim lblVis2 As Label
Dim btnCalc As Button
Sub btnCalc_Click
lblVis1 = root(2*6368*edtNumber/0.8279,2)/100
lblVis2 = 1.17*root(edtNumber,2)
End Sub
Question:
- On the above the number field is declare as a Text or should this be decleared as Int what do I set on the designer view of this contrl?
- could some explain how such a calculation is done, I am a bit confused how to set this up and what has to be configured in the Designer and what in code.
- if I like the calculation is performed without btnCalc_Click what would it be
What way is the best path to follow ?
Thanks for any input!
Excuse Me ...! I guess I posted this in the wrong Forum.. how do I move it ?
Dim edtNumber As EditText
Dim lblVis1 As Label
Dim lblVis2 As Label
Dim btnCalc As Button
Sub btnCalc_Click
lblVis1 = root(2*6368*edtNumber/0.8279,2)/100
lblVis2 = 1.17*root(edtNumber,2)
End Sub
Question:
- On the above the number field is declare as a Text or should this be decleared as Int what do I set on the designer view of this contrl?
- could some explain how such a calculation is done, I am a bit confused how to set this up and what has to be configured in the Designer and what in code.
- if I like the calculation is performed without btnCalc_Click what would it be
What way is the best path to follow ?
Thanks for any input!
Excuse Me ...! I guess I posted this in the wrong Forum.. how do I move it ?
Last edited: