no luck with inp & out please help!

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
iamdenteddisk
Veteran
Posts: 185
Joined: Mon Jun 30, 2008 4:10 pm

no luck with inp & out please help!

Post by iamdenteddisk »

I have tryed 2 or 3 differt things from tutorials and have used QB for years and just dont think I understand what is meant in the tutorial this is my first time trying to us qb with a modem though I done games and such before, I just cant grasp the inp & out stuff it just dont click for me what I want to use is the open com statements but my problem is this qb uses com 1 & 2 not 3 & 4 and my modem is on com 3 so..

I am down to a single error "file or number don't exist"
on the line below.

OPEN "com" + port$ + ":" + baud$ + ",N,8,1,RB2048,TB2048" FOR RANDOM AS #1


the Tutorial says:
COM1 &H3F8
COM2 &H2F8
COM3 &H3E8
COM4 &H2E8

it also says that qb can only use com 1&2 in H or L meaning 1&3 are on com1 and 2&4 are on com2 in qb
and this tutorial suggest pokeing the com3 address into com1
**what is the syntax or line to do that?**

can anyone help me here?

if this is possible and I am thinking it is but just not clearly documented, the simple prog I am working on now will be an exelent source for others too.
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 »

PLEASE STAY in ONE THREAD on this topic! I will answer in the other thread..............
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
Post Reply