Turn input text string into numeric variable
Hello again
I would like to set up a page with four input fields where a user can enter a number.
I then want to store those values as variables that I can use to perform calculations.
I'm struggling to get this to work - I suspect because my variables are set up as numbers, and my input fields accept strings. How can I marry the two together?
What I've got so far is:
inputReviewAll(null);
function inputReviewAll(event:Event):void
{
var ReviewNumber:Number = Number(txtNoReview.text);
var ApproveNumber:Number = Number(txtNoApprove.text);
// and so on for other two variables
}
// txtNoReview.text = ReviewNumber.toString();
Thank you
M Hetherington
