Hi All
A small problem. In the code below I flash the text in an edit text and button and sound beeps to alert the user to enter a value for a variable.
In the code I should get 3 beeps. Sometimes I get 2 or 4 beeps. I know it has something to do with the durations of the Beep and the Sleep [resumable subs) but can't find a solution.
Regards Roger
A small problem. In the code below I flash the text in an edit text and button and sound beeps to alert the user to enter a value for a variable.
In the code I should get 3 beeps. Sometimes I get 2 or 4 beeps. I know it has something to do with the durations of the Beep and the Sleep [resumable subs) but can't find a solution.
B4X:
If VarExists = 0 Then '1st time this VAR appears in this PGM, add to reg and enter value)
VarReg(VarReg_flag, 0) = VariableName
Idisplay.Text = Recording(FNum, Step_count, 1) & " = ?"
BtnVarEnt.BringToFront
For I = 0 To 7
Idisplay.TextColor = Colors.Red
BtnVarEnt.TextColor = Colors.Black
If I < 2 Then Beep1.Beep
Sleep(150)
Idisplay.TextColor = Colors.Black
BtnVarEnt.TextColor = BVE
If I < 1 Then Beep1.Beep
Sleep(150)
Next
Return
End If
Regards Roger
Last edited: