I was using this code to check the length of the string, and if it was equal to five, move on to the next box. but it doesn't work. It never moves on. I tried replacing the "==" with a ">", but that jsut gave me an error that said I was trying to compare a number to a nil value.
I don't know what to do. I put these in the "on Ctrl message" area.
Code:-- These actions are triggered by the controls on the screen. --find the length of the first entry local srts1L = String.Length("srts1"); --find the length of the second entry local srts2L = String.Length("srts2"); --find the length of the third entry local srts3L = String.Length("srts3"); --check to see when the first five numbers are entered if(strs1L == 5)then Screen.SetFocus(CTRL_EDIT_02); --check to see when the second set of five numbers are entered if(strs2L == 5)then Screen.SetFocus(CTRL_EDIT_03); --because there are no more places to go, don't need to check for the next set. end end

