[Coco] Error in BASIC manual. ?
Rob Rosenbrock
bester at adamswells.com
Sun Jul 17 18:50:00 EDT 2022
That 3 is definitely a typo. Look at the documentation for LINE.
Sent from my iPad
> On Jul 17, 2022, at 5:59 PM, William Astle via Coco <coco at maltedmedia.com> wrote:
>
> Looks like whoever was doing the manual may have been familiar with other variants of Microsoft's graphics stuff which do accept a colour number in place of PSET or PRESET. But the Coco basic doesn't.
>
>> On 2022-07-17 13:14, Michael Kline via Coco wrote:
>> 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
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>
More information about the Coco
mailing list