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=3 REM 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:[email protected]] On Behalf Of George Rimakis Sent: zondag 13 mei 2018 16:12 To: [email protected] 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 <[email protected]> on behalf of Stephen Adolph <[email protected]> Reply-To: <[email protected]> Date: Sunday, May 13, 2018 at 10:08 AM To: <[email protected]> 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.
