[Coco] ?ST ERROR

Aaron Banerjee spam_proof at worldnet.att.net
Tue Mar 8 15:49:29 EST 2005



I'll try the mid$ test.  Thanks.

On Tue, 8 Mar 2005, Arthur Flexser wrote:

> On Tue, 8 Mar 2005, Robert Emery wrote:
> 
> > 
> > > anyone have an "innocent" BASIC routine that can produce an ?ST ERROR
> > > (string formula too complex)? 
> > 
> > Without testing, I think you can do it using PLAY or (H)DRAW with strings... 
> > 
> > 10 A$=string$(255,"8") 'this may be backwards 
> > 20 PLAYA$+A$ 'should generate an error since A$+A$ is longer than 255 bytes
> > 30 PLAY"XA$;XA$;" 'would have the same effect, but without the error
> > 
> > Bob
> 
> That would give an ?LS error (long strong), not ?ST.  I would think an ?ST error
> would result from having to evaluate an excessively complex string expression of
> some sort.  Maybe something like
> Y$=MID$(MID$(MID$(MID$(MID$(MID$(MID$(MID$(A$,1),1),1),1),1),1),1),1)
> 
> Art




More information about the Coco mailing list