General discussion

Locked

serial port

By jatinder_44 ·
it convert the value to hexadecimal but when i pass this value to the mscomm control or to the serial port it doesn't reply my code is just follow below.

	Text3.Text = Hex(Text1.Text)
	 bytetosend(0) = Text3.Text
                 bytetosend(1) = Text3.Text
                bytetosend(2) = Text3.Text
           	 bytetosend(3) = Text3.Text
	 bytetosend(4) = Text3.Text
        	bytetosend(5) = Text3.Text
        	buffer = bytetosend()
        	MSComm1.Output = buffer
       	 Do
       	 dummy = DoEvents()
       	 Loop Until MSComm1.InBufferCount > 5
        	datain = MSComm1.Input
       	 Text2.Text = Val(Asc(Mid$(datain, 1, 1)))

	

And i want to display the value in Text2.text from input from serial port.pls help in this .
Thank u

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Repost in questions forum

by Why Me Worry? In reply to serial port

Thank you...please come again!

Collapse -

Why you should heed WMW's advice.

by deepsand In reply to serial port

The "Discussion" forum is for matters of general discussion, not specific problems in search of a solution.

Post problems such as this to the "Question" forum, rather than the "Discussion" forum. There are those who specifically seek out problems in need of a solution, and that's where they go to look for such.

Additionally there are the benefits that:

1) The "Questions" forum provides for your feedback, by way of your being able to mark "helpful" responses as such. This does not necessarily mean that a given response contained the complete solution to your problem, but only that it served to guide you toward it. This is intended to serve as an aid to those who may in the future have a problem similar to yours, so that they might have a ready source of reference available, thereby perhaps obviating the need for them to repeat questions previously asked and answered.

2) The revised TR makes it quite difficult to find both "Discussions" and "Questions" that have not had a fairly recent post, owing to some functions comingling them in the listings. By keeping each type in their respective forums, it is easier for all to find what they are looking for.

Back to Networks Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums