patrick6
03-24-2004, 07:17 AM
I have several input boxeson a screen to enter numbers into for performing simple math.
I have the follwiwing lines of script to make sure someone enters something into the boxes.
if Input.GetText("Input2") == "" then Dialog.Message("Complete Wage Info", "Please Enter Average Hourly Wage Of Workers On Site", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
else
Now when I run the program, if someone deletes the 0 out of the text box and hits the calculate butto I get :
Onclick line 31, Attempt to preform arithmatic on global 'value1'(a string value)
It didn't do this I maksed the input box to allow numbes only?
I have the follwiwing lines of script to make sure someone enters something into the boxes.
if Input.GetText("Input2") == "" then Dialog.Message("Complete Wage Info", "Please Enter Average Hourly Wage Of Workers On Site", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
else
Now when I run the program, if someone deletes the 0 out of the text box and hits the calculate butto I get :
Onclick line 31, Attempt to preform arithmatic on global 'value1'(a string value)
It didn't do this I maksed the input box to allow numbes only?