Solved

Inputmode property of MScomm control

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

943 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

9 Experts available now in Live!

Get 1:1 Help Now