[Coco] PRINT vs PRINT USING

Wayne Campbell asa.rand at gmail.com
Wed Apr 1 11:55:46 EDT 2020


I'm sorry I didn't get to this thread sooner. I went through the same issue
back in the day when learning Basic09 syntax. It seems strange that they
would include the comma when not including the USING statement, but
omitting it when including it, but I guess they were trying to be grammar
friendly. Once you get used to it, it's easy enough to remember when to use
the comma and when not to.

PRINT #path, "text" or number or expression
PRINT #path USING format, "text"[, number, expression]

Wayne

The Structure of I-Code
http://www.cocopedia.com/wiki/index.php/The_Structure_of_I-Code



On Wed, Apr 1, 2020 at 7:40 AM <coco at jechar.ca> wrote:

> On 2020-03-31 19:08, Bill Gunshannon wrote:
> > On 3/31/20 6:12 PM, L. Curtis Boyle wrote:
> >> 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>
> >>>
> >
> > And the original manual has conflicting statements.
> >
> > Page 10-4 shows:
> >    PRINT #<int exp>, USING <str expr> <output list>
> >
> > and 10-16 shows:
> >    PRINT [#<expr>] USING <str expr> , <output list>
> >
> > Try them all, use the one that works.  :-)
> >
> > bill
>
>   1o-16 was correct 10-4 in error. Thanks for the help.
>
> Charlie.
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>


More information about the Coco mailing list