Opening a comm port for input 
Author Message
 Opening a comm port for input

I'm trying to open a comm port for input into a text file.
This is what I think I should do:

    Open comm1.portopen for input as #FileNum1

The program I'm writing, opens comm 2 and writes the data
to a text file.  Is this the correct, or best way?

Please do not E-mail me, just post a reply to this group.
Thanks in advance.   Jeff



Thu, 29 Jan 1998 03:00:00 GMT  
 Opening a comm port for input

Quote:

> I'm trying to open a comm port for input into a text file.
> This is what I think I should do:

>     Open comm1.portopen for input as #FileNum1

> The program I'm writing, opens comm 2 and writes the data
> to a text file.  Is this the correct, or best way?

Just do:

comm1.portopen = true

It does not work with Basic's Open statement and you can not use basic's
normal file I/O routines on it.

Check the help file under other tech sources or something like that, then go
to professional help files, then to Communications.

Regards,
Don.



Thu, 29 Jan 1998 03:00:00 GMT  
 Opening a comm port for input

Quote:

>I'm trying to open a comm port for input into a text file.
>This is what I think I should do:
>    Open comm1.portopen for input as #FileNum1
>The program I'm writing, opens comm 2 and writes the data
>to a text file.  Is this the correct, or best way?

There is a full comm port sample program thats included with VB/pro
just take a look at it. Its well commented.
Bryan Kramer
LabWerks Development
ClubWin Support Group


Fri, 30 Jan 1998 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. comm port input from GPS

2. Monitoring 2 Comm ports for input

3. Stream input from COM port using MS COMM control: example requested

4. Open comm port

5. API - Opening a Comm port -NT

6. How to detect an open comm port

7. opening and sending BINARY to a comm port.

8. Comm port freezes on open!

9. (Q) How to open a comm port.

10. How to open comm port in VB4.0?

11. Comm Port will not Open

12. Open Comm Port?

 

 
Powered by phpBB® Forum Software