[Coco] Error in BASIC manual. ?

michaelkline704 at gmail.com michaelkline704 at gmail.com
Sun Jul 17 15:14:07 EDT 2022


Ok, I have the answer: 
30  HLINE(22,33)-(100,90) ,3,BF should be 30  HLINE(22,33 )-(100,90) ,PSET,BF
The number 3 should be either PSET or PRESET. Look at the programme example on page 175 regarding HGET. It shows the correct syntax for HLINE. So yes, there is a typo in the manual. 

Michael



-----Original Message-----
From: Coco <coco-bounces at maltedmedia.com> On Behalf Of Bruce W. Calkins via Coco
Sent: 17 July 2022 12:31
To: coco at maltedmedia.com
Cc: Bruce W. Calkins <brucewcalkins at charter.net>
Subject: Re: [Coco] Error in BASIC manual. ?

Could the spaces be a problem?
Indicated with a *.

30 *HLINE*(22,33*)-(100,90)*,3,BF

30 HLINE(22,33)-(100,90),3,BF

Bruce W.



On 7/17/22 08:41, coco--- via Coco wrote:
> 
> I tried putting
> 
> 30  HLINE (22,33 )-(100,90) ,3,BF
> 
> in a basic program but when I run it I get ?SN ERROR IN 30
> 
> I followed the manual example exactly and I have included the entry 
> for this command from a PDF of the manual in the coco archives as you 
> can see I copied the command exactly so why am I getting an error ?
> 
> HLiNE (xl ,yl)-(x2,y2),c,a
> HRESET (x,y)
> Draws a line on the high-resolution graphics screen.
> (x1,y1) Starting point of line. If omitted the line starts at the last 
> ending point o r the center of the screen
> -(x2.y2) Ending point of HLiNE.
> c Defines color (Required). PSET
> selects current foreground color.
> Resets a point on the high-resolution graphics screen to the 
> background color.
> HRESET (22,33)
> HSCREEN mode
> Selects a high-resolution graphics screen mode.
> Modes 1-4 also clear the high-resolutio(1 graphics PRESET selects 
> current background color a HPUT (SK,sy)-(ex,ey),b,a screen.
> mode
> BASIC draws a box, using the
> starting and ending points as
> opposite corners of the box. If
> BF
> used, BASIC draws a solid box.
> HLINE (22,33 )-(100,90) ,3,BF
> 

--
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco



More information about the Coco mailing list