Re: [M100] use of PRINT

2018-05-14 Thread VANDEN BOSSCHE JAN
I would never use a ‘+’ in a print statement. It is an extra concatenation 
action, which is unnecessary in a print. Use ; instead.

With that in mind, I would write Stephen’s code as followes:

10 PRINTE;"pFile to Convert ";E;"q";
And for George:

PRINT CR$;CHR$(Y);CHR$(X);

Actually, what does CHR$(27)+CHR$(89) do ?

FWIW, I always used print@ to position the cursor. So, that code would become:

Y=3REM line numbers from 0-7
X=14   REM positions from 0-39
PRINT@(Y*40+X),;

That works everywhere, except for the last position on screen, where Y=7 and 
X=39 .

Ah well, the finesses/limitations of BASIC.

Greetings from the TyRannoSaurus / Jan-80@work

From: M100 [mailto:m100-boun...@lists.bitchin100.com] On Behalf Of George 
Rimakis
Sent: zondag 13 mei 2018 16:12
To: m...@bitchin100.com
Subject: Re: [M100] use of PRINT

Hi Stephen,

It’s funny you sent this, I was about to post. I’m trying to use the Escape 
Sequences to reposition the cursor to the location of Y,X.

I’ve got

Y=3
X=14
CR$=CHR$(27)+CHR$(89)
PRINT CR$+CHR$(Y)+CHR$(X);

I’ve already turned on the cursor earlier.

Do I just have the wrong syntax? I also noticed that the strings to concatenate 
without use of + while testing this.

~Geore\ge

From: M100 <m100-boun...@lists.bitchin100.com> on behalf of Stephen Adolph 
<twospru...@gmail.com>
Reply-To: <m...@bitchin100.com>
Date: Sunday, May 13, 2018 at 10:08 AM
To: <m...@bitchin100.com>
Subject: [M100] use of PRINT

I found this interesting bit of code.
here E=chr$(27).

10 PRINTE"pFile to Convert "E"q";
I didn't know that basic automatically concatenates strings like this.  I would 
have written this
10 PRINT E+"p"+"File to Convert"+E+"q";

VIVAQUA et HYDROBRU ont fusionné.
VIVAQUA est votre société d'eau en Région de Bruxelles-Capitale.

VIVAQUA en HYDROBRU zijn gefusioneerd.
VIVAQUA is uw waterbedrijf in het Brusselse Hoofdstedelijk Gewest.

[http://www.vivaqua.be/facebook.png] Rejoignez-nous sur Facebook - Volg ons op 
Facebook

DISCLAIMER
Pensez à l'environnement, n'imprimez cette page et ses annexes que si c'est 
nécessaire. Ce message électronique, y compris ses annexes, est confidentiel et 
réservé à l’attention de son destinataire.  Si vous n'êtes pas le destinataire 
de ce message, merci de le détruire et d’en informer l’expéditeur. Toute 
divulgation, copie ou utilisation de ce mail est dans ce cas interdite. La 
sécurité et l'exactitude des transmissions de messages électroniques ne peuvent 
être garanties.
Denk aan het milieu; druk deze pagina en de bijlagen alleen af als het nodig 
is. Dit e-mailbericht (inclusief zijn bijlagen) is vertrouwelijk en is 
uitsluitend bestemd voor de geadresseerde. Als dit bericht niet voor u bestemd 
is, wordt u verzocht het te wissen en de afzender te informeren. Het is in dat 
geval niet toegestaan dit bericht te verspreiden, te kopiëren of te gebruiken. 
We kunnen niet garanderen dat de gegevensoverdracht via het internet veilig en 
nauwkeurig is.


Re: [M100] use of PRINT

2018-05-13 Thread Kenneth Pettit
Hi Steve.

I think I actually used this technique of auto string concatenation in one (or 
all) of my BASIC 10-Liners. Which reminds me, I never actually got the 
documentation done for 2 of those.  I should do that and post the other 2 games 
to personal libraries.

Ken

Sent from my iPhone

> On May 13, 2018, at 11:24 AM, Bill Marcum  wrote:
> 
> 
> 
>> On Sun, May 13, 2018, 12:51 PM Stephen Adolph  wrote:
>> I am reminded of the one line basic program activity.  sometimes BASIC can 
>> be so compact.
>> 
>> Here is a way to do a WHILE statement or and endless loop as part of a one 
>> line program
>> 
>> FOR I=1 to2:?i:I=I-1:ifinkey$="a"theni=i+1:nextelsenext
>> 
> 
> 
> You can also write FOR I =1 TO 2 STEP 0


Re: [M100] use of PRINT

2018-05-13 Thread Bill Marcum
On Sun, May 13, 2018, 12:51 PM Stephen Adolph  wrote:

> I am reminded of the one line basic program activity.  sometimes BASIC can
> be so compact.
>
> Here is a way to do a WHILE statement or and endless loop as part of a one
> line program
>
> FOR I=1 to2:?i:I=I-1:ifinkey$="a"theni=i+1:nextelsenext
>
>
You can also write FOR I =1 TO 2 STEP 0


Re: [M100] use of PRINT

2018-05-13 Thread Stephen Adolph
I am reminded of the one line basic program activity.  sometimes BASIC can
be so compact.

Here is a way to do a WHILE statement or and endless loop as part of a one
line program

FOR I=1 to2:?i:I=I-1:ifinkey$="a"theni=i+1:nextelsenext



On Sun, May 13, 2018 at 12:02 PM, John R. Hogerhuis 
wrote:

>
> On Sun, May 13, 2018 at 7:08 AM Stephen Adolph 
> wrote:
>
>> I found this interesting bit of code.
>> here E=chr$(27).
>>
>> 10 PRINTE"pFile to Convert "E"q";
>>
>> I didn't know that basic automatically concatenates strings like this.  I
>> would have written this
>>
>> 10 PRINT E+"p"+"File to Convert"+E+"q";
>>
> Huh! I don’t remember ever seeing that, and I’ve typed in a lot of MS
> BASIC programs.
>
> — John.
>


Re: [M100] use of PRINT

2018-05-13 Thread John R. Hogerhuis
On Sun, May 13, 2018 at 7:08 AM Stephen Adolph  wrote:

> I found this interesting bit of code.
> here E=chr$(27).
>
> 10 PRINTE"pFile to Convert "E"q";
>
> I didn't know that basic automatically concatenates strings like this.  I
> would have written this
>
> 10 PRINT E+"p"+"File to Convert"+E+"q";
>
Huh! I don’t remember ever seeing that, and I’ve typed in a lot of MS BASIC
programs.

— John.


Re: [M100] use of PRINT

2018-05-13 Thread Stephen Adolph
I don't know, would have to research the manual a bit.
The other way is to  call POSIT, that is fast and simple to do.

On Sun, May 13, 2018 at 10:11 AM, George Rimakis <grima...@gmail.com> wrote:

> Hi Stephen,
>
>
>
> It’s funny you sent this, I was about to post. I’m trying to use the
> Escape Sequences to reposition the cursor to the location of Y,X.
>
>
>
> I’ve got
>
>
>
> Y=3
>
> X=14
>
> CR$=CHR$(27)+CHR$(89)
>
> PRINT CR$+CHR$(Y)+CHR$(X);
>
>
>
> I’ve already turned on the cursor earlier.
>
>
>
> Do I just have the wrong syntax? I also noticed that the strings to
> concatenate without use of + while testing this.
>
>
>
> ~Geore\ge
>
>
>
> *From: *M100 <m100-boun...@lists.bitchin100.com> on behalf of Stephen
> Adolph <twospru...@gmail.com>
> *Reply-To: *<m...@bitchin100.com>
> *Date: *Sunday, May 13, 2018 at 10:08 AM
> *To: *<m...@bitchin100.com>
> *Subject: *[M100] use of PRINT
>
>
>
> I found this interesting bit of code.
>
> here E=chr$(27).
>
>
> 10 PRINTE"pFile to Convert "E"q";
>
> I didn't know that basic automatically concatenates strings like this.  I
> would have written this
>
> 10 PRINT E+"p"+"File to Convert"+E+"q";
>


Re: [M100] use of PRINT

2018-05-13 Thread George Rimakis
Hi Stephen,

 

It’s funny you sent this, I was about to post. I’m trying to use the Escape 
Sequences to reposition the cursor to the location of Y,X.

 

I’ve got

 

Y=3

X=14

CR$=CHR$(27)+CHR$(89)

PRINT CR$+CHR$(Y)+CHR$(X);

 

I’ve already turned on the cursor earlier.

 

Do I just have the wrong syntax? I also noticed that the strings to concatenate 
without use of + while testing this.

 

~Geore\ge

 

From: M100 <m100-boun...@lists.bitchin100.com> on behalf of Stephen Adolph 
<twospru...@gmail.com>
Reply-To: <m...@bitchin100.com>
Date: Sunday, May 13, 2018 at 10:08 AM
To: <m...@bitchin100.com>
Subject: [M100] use of PRINT

 

I found this interesting bit of code.  

here E=chr$(27).


10 PRINTE"pFile to Convert "E"q";

I didn't know that basic automatically concatenates strings like this.  I would 
have written this

10 PRINT E+"p"+"File to Convert"+E+"q";



smime.p7s
Description: S/MIME cryptographic signature


[M100] use of PRINT

2018-05-13 Thread Stephen Adolph
I found this interesting bit of code.
here E=chr$(27).

10 PRINTE"pFile to Convert "E"q";

I didn't know that basic automatically concatenates strings like this.  I
would have written this

10 PRINT E+"p"+"File to Convert"+E+"q";