Use Timer Event

Marinus

I'm learning... :)
Local time
Today, 19:31
Joined
Jun 16, 2010
Messages
140
Hi All,

Perhaps some one could give me some advise and help with the following;
I read a scale with the following code On_Click behind a command button.

Code:
Private Sub cbWeightTransfer_Click()
 On Error Resume Next
    TxTWeight_1.SetFocus
    Open "c:\w\rx_cmd.txt" For Append As #1
    Print #1, "{TX_KEYB[{BUTTON_TXT[0]}]}"
    Close #1
    TxTWeight.SetFocus
End Sub

The operator needs to press the button to read the scale, before he can continue. I would like to eliminate the button and read the textbox with a timer, say every 5 seconds.

Would this have serious consequences for the performance of of the application and if not what would be the best way to code this.
 

Users who are viewing this thread

Back
Top Bottom