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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
Thread Tools
Old 06-26-2008, 06:27 PM   #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???????????
flyfish29 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-27-2008, 09:41 PM   #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.
flyfish29 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -7. The time now is 04:09 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82