[net.micro.pc] COM2 and Turbo Pascal

pier@ur-univax.UUCP (08/15/85)

I am trying to program my modem from a Turbo Pascal program. The modem is

configured as COM2. So I open a file as COM2 and send the modem commands.

Well the modem does not seem to get the commands. I tried the same thing

in basic using "open COM2: as #1 " and it works just fine.

I have the feeling that an open statement in BASIC does something that

an ASSIGN and REWRITE in Turbo Pascal does do. But the question is what?



Does anybody know what I should do in Pascal to get the equivalent of a 

BASIC OPEN statement with all its options? Or is it a problem with Turbo

and the communication port. I don't know how to check that characters, if any,

get actually sent to COM2.



Any help appreciated. Thanks.



Pierre Darmon

University of Rochester