Solved

Inputmode property of MScomm control

Posted on 2001-07-02
3
244 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 150 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

732 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