🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3450

Re: A QBASIC Question

#3450
From: DENNIS LITTLE
Date: Wed, 30 Sep 1992 21:59
25 lines
1204 bytes
In article <1992Sep30.105036.646@hls.com>, tima@hls.com                           writes...
> 
>I've been hacking around with QBASIC recently and I've come across 
>a problem that I can't figure out. When I execute the program shown below,
>I get a syntax error. Any suggestions ????
> 
>  DEFINT a-z
> 
>  CONST Num = 10
> 
>  READ a          <===== error is reported at this line
> 
>  DATA Num
> 
>  END
> 
> 
>Tim
>tima@hls.com

The "Read A" line assumes an integer variable and since "Num"
is not numeric, it will crash... Try changing A to A$ and see
what happens.

me
Technical Details
Message-ID: <30SEP199215591850@sscvx1.ssc.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!paperboy.micro.umn.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!convex!sunova!sscvx1.ssc.gov!dlittle
References: <1992Sep30.105036.646@hls.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!paperboy.micro.umn.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!convex!sunova!sscvx1.ssc.gov!dlittle
From: dlittle@sscvx1.ssc.gov (DENNIS LITTLE)
Subject: Re: A QBASIC Question
Message-ID: <30SEP199215591850@sscvx1.ssc.gov>
News-Software: VAX/VMS VNEWS 1.4-b1  
Sender: usenet@sunova.ssc.gov (News Admin)
Nntp-Posting-Host: sscvx1
Organization: Superconducting Super Collider Laboratory
References: <1992Sep30.105036.646@hls.com>
Date: Wed, 30 Sep 1992 21:59:00 GMT
Lines: 25