[Coco] PRINT vs PRINT USING

L. Curtis Boyle curtisboyle at sasktel.net
Tue Mar 31 18:12:52 EDT 2020


That is correct - no comma after the path.
An example I just tried that worked:
PRINT #1 USING “h4”,3430

L. Curtis Boyle
curtisboyle at sasktel.net



> On Mar 31, 2020, at 3:44 PM, James C. Hrubik <jimhrubik at earthlink.net> wrote:
> 
> According to page 268 of the Basic09 Tour Guide, there is no comma after the path number :  PRINT[#<expr>] USING <str expr>, <output list>
> 
> On Mar 31, 2020, at 5:14 PM, coco at jechar.ca <mailto:coco at jechar.ca> wrote:
> 
>> On 2020-03-31 16:14, Bill Gunshannon wrote:
>>> On 3/31/20 3:56 PM, coco at jechar.ca wrote:
>>>> If I want to print "HELLO" to the screen in a basic09 program
>>>> I would use.
>>>> PRINT "HELLO"
>>>> If instead I to print "HELLO" to a file I can use.
>>>> PRINT #pathno,"HELLO"
>>>> Is there any way to send the output of "PRINT USING" to
>>>> a file?
>>>> Charlie
>>> According to the manual it is simply:
>>> PRINT #<int exp>, USING <str expr>, <output list>
>>> bill
>> 
>> When I try the syntax you suggest I get a compile error.
>> 
>> 
>>  OPEN #pathno,saveat$:WRITE
>> 
>>  PRINT #pathno,"TEST"
>> 
>>  FOR y=1 TO 19
>>      FOR x=1 TO 21
>>          PRINT #pathno," ";
>>          PRINT #pathno, USING "H", quilt(x,y);
>>      NEXT x
>>      PRINT #pathno
>> 
>>  NEXT y
>> 
>>  CLOSE #pathno
>> 
>>  Everything worked before I tryed to send it to a file.
>>  Also It works if except for the "PRINT USING" line.
>>  So it is not an issue with the pathno or saveat$ varibles.
>> 
>>  Which are of type BYTE and STRING.
>> 
>>  PS THE COMPILE  ERROR POINTER POINTS TO JUST BEFORE "USING"
>> 
>>  Charlie.
>> 
>> 
> 
> ———
> The Angel of Death passed by me today, 
> but I am confident that if he really needs me, 
> he can find me faster than 9-1-1.
> ———
> Sayings of Grandpa Jim, c. 2020
> 
> 
> 
> 
> -- 
> Coco mailing list
> Coco at maltedmedia.com <mailto:Coco at maltedmedia.com>
> https://pairlist5.pair.net/mailman/listinfo/coco <https://pairlist5.pair.net/mailman/listinfo/coco>


More information about the Coco mailing list