|
-
Apr 29th, 2002, 01:25 AM
#1
Thread Starter
Junior Member
Little Help Here???
I need to write a loop that send text after a certain interval... How do i do that???
Thank you for ur assistance...
Private Sub CmdSend_Click()
Dim mystring As String
If txtSend.Text = "" Then txtSend.SetFocus
mystring = txtSend.Text
txtRecv = mystring
MSComm1.Output = Right$(mystring, 157) + vbCr
End Sub
-
Apr 29th, 2002, 01:42 AM
#2
-
Apr 29th, 2002, 01:51 AM
#3
Thread Starter
Junior Member
Timer???
Meaning using the following sentence in my function:
Timer1.Interval = 10000
Is that wat u mean???
thank you for ur assistance.
-
Apr 29th, 2002, 01:59 AM
#4
No I mean add a Timer control to the form and at the form load or at the button press then set the Timer1.Interval=10000 and make sure it is enabled (Timer1.Enabled=True). Then in the Timer1_Timer event put any code you want to execute as frequently as the interval.
-
Apr 29th, 2002, 02:08 AM
#5
Ya..........
Correct just use a timer will do all the job
Girl, do you understand???
-
Apr 29th, 2002, 02:26 AM
#6
Hyperactive Member
Re: Little Help Here???
VB Code:
Private Sub CmdSend_Click()
Dim mystring As String
If txtSend.Text = "" Then txtSend.SetFocus
mystring = txtSend.Text
txtRecv = mystring
MSComm1.Output = Right$(mystring, 157) + vbCr
End Sub
What is the point of the line txtRecv=mystring? Isn't mystring the string you're sending, not recieving?
-Show me on the doll where the music touched you.
-
Apr 29th, 2002, 03:22 AM
#7
Thread Starter
Junior Member
Yes...
but i need to see if wat i send is wat i received......
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|