Hi,
I would like to enable btNext1 after the scan has finished.
But the button is enabled while the scan is still running.
Can I solve this with Wait For?
Any idea?
Cenny
I would like to enable btNext1 after the scan has finished.
But the button is enabled while the scan is still running.
Can I solve this with Wait For?
Any idea?
Cenny
B4X:
Sub btPrepare1_Click
If Check_Values Then
btPrepare1.Enabled=False
StartScan
btNext1.Enabled=True
End If
End Sub
B4X:
Sub StartScan
If Check_Values=True Then
For i = StartAt To EndAt Step Stap
Module1.SendTrimValue(i)
servosetting=i
lblServoSettings.Text=i
Sleep(interval*1000)
Decalage=sf.Left(lblDecalages.Text,lblDecalages.Text.Length-1)
Module1.SQL1.ExecnonQuery2(strSQL2,Array As String(Module1.ModelID,Decalage,servosetting))
Next
End If
End Sub