?
Solved

chr$(0) does not get transmitted(modem)

Posted on 2002-06-24
3
Medium Priority
?
184 Views
Last Modified: 2010-05-02
Hi,
I've found that chr$(0) does not get transmitted over the modem using microsoft's newvbterm.exe or any other such programs.HELP!
0
Comment
Question by:sudeepn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Accepted Solution

by:
PNJ earned 200 total points
ID: 7107610
NULLs DO get transmitted and other non-printables. It just depends how the program (NEWVBTERM and so on) is handling the data. NULLs can be used a string terminators (as per C) so you may have to use the MSCOMM control and code it yourself. Out of interest, check out the help for Nulldiscard and InputMode. This code fragment may help as well:

   With comPort
      .Handshaking = comNone
      .InputMode = comInputModeText
      .CommPort = 2
      .Settings = "1200,E,8,1"
      .InputLen = 0            ' Tell the control to read entire buffer when Input
                               ' is used.
      .PortOpen = True         ' Open the port.
      .InputLen = 0            ' Read all of the text
      .RThreshold = 1          ' Interrupt every character
   End With

   Dim Temp As Variant ' Do not use a byte array as this intersperses NULLs
   Dim Text As String

   Text = "Hello" & Chr$(0) & " World"
   ' Send the message
   Temp = Text
           
   comPort.Output = Temp

This should work - it's from our crane handling system.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7962965
Hi sudeepn,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept PNJ's comment(s) as an answer.

sudeepn, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Expert Comment

by:Netminder
ID: 8038970
Per recommendation, force-accepted.

Netminder
EE Admin
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month13 days, 10 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question