![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jun 2008
Posts: 6
OS: WindowsXP
|
How do I enter a carriage return in VB 6.0?
I have about 1.5 years of VB6.0 programming experience. Mostly activeX and raw data technical stuff. I am thinking of doing a custom install for a customer and controlling an LC3272N HD TV just happens to be a part of the VB6 HMI. I will be using a lot of stuff that I have a good grasp on; however, I am having trouble sending data via RS232 to the HP TV. I have found the "HP TVs RS232 control code document online, but it is code totally new to me. I will just paste the link. I have set up the COMM port already. The document is also stating I need to set up the Flow Control to CTS/RTS, but I do not see this option in device manager. The TV is expecting a 3 byte command; a Paameter of 4 bytes; the CR (Carriage Return 0Dh) at the end of string..........A OK+Cr: Success....A ERR + CR: fail.
http://h10025.www1.hp.com/ewfrf/wc/docum... I am not sure if I have to DIM something or what. I am hoping someone is able to help me out. I can compensate if need be. Here is the text. What I have been attempting is to write code to turn off the TV and turn it on--Just something simple. Here is what I am trying ..............MSComm1.Output = (PWR 0) and then it asks for a carriage return??????????? |
|
|
|
|
|
#2 (permalink) |
|
Registered User
Join Date: Jun 2008
Posts: 6
OS: WindowsXP
|
Re: How do I enter a carriage return in VB 6.0?
Problem solved!!!!!! After I did a little research I was able to fit the missing piece. All I needed to do was the following line of text..........MScomm1.Output = "PWR0 " & Chr$(13) ...Now I can use the other strings to do more stuff via a VB6.0 HMI.
|
|
|
|
![]() |
| Thread Tools | |
|
|