Solved

Inputmode property of MScomm control

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now