?
Solved

Inputmode property of MScomm control

Posted on 2001-07-02
3
Medium Priority
?
248 Views
Last Modified: 2012-08-13
What is the exact range of ASCII values that the mscomm control can receive correctly in Inputmodetext ?

Can binary data be correctly received in inputmodebinary , more than one byte at a time ? If yes , is there any maximum input string length limitation ?
0
Comment
Question by:sujitsaha
[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 43

Accepted Solution

by:
TimCottee earned 600 total points
ID: 6245364
Either mode will work in most situations. If you are using NULL characters then it may be preferable to use the binary mode. The main difference is the way the data is handled:

Dim aryData() As Byte

aryData = MSComm1.Input

returns an array of byte values representing the data that is received. This can be one or more bytes at a time (this depends on two things, 1) the value of the InputLen property which determines how many characters/bytes to take out of the input buffer on each call and 2) the size of the input buffer - if this is too small you may experience loss of data as excess characters/bytes may be discarded if not read.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7147941
Hi sujitsaha,
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 TimCottee's comment(s) as an answer.

sujitsaha, if you think your question was not answered at all or if you need help, you can simply post a new comment here.  Community Support moderators will follow up.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7178786
Comment from expert accepted as answer

Computer101
E-E Moderator
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month12 days, 23 hours left to enroll

777 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