New PRINT @ grid command

This forum is dedicated to those who wish to suggest new features.
Questo forum è dedicato a chi desidera suggerire nuove feature.
Ce forum est dédié à ceux qui souhaitent suggérer de nouvelles fonctionnalités.
Post Reply
spotlessmind1975
Site Admin
Posts: 149
Joined: Fri Oct 06, 2023 8:25 pm

New PRINT @ grid command

Post by spotlessmind1975 »

[italian and french follow]

:arrow: ENGLISH

Hi everyone!

Starting from the next version (and already available in beta) there is a new command: PRINT@grid. This is a command that allows you to place output at a specified place on the screen. It similar to LOCATE, with the main difference that uses just one number. For this purpose, the screen is divided into a SCREEN COLUMNS x SCREEN ROWS. I.e., if you have a screen of 40 columns for 25 rows, it will give you 1000 positions. The form of the PRINT @ command is

Code: Select all

PRINT @ position[, expression]
The position can be a number, a variable or an arithmetic expression, as long as the value is between 0 and 1000 (or whatever is the product of rows and columns). The print list is the same as used in the PRINT command. It can be numbers, variables, strings or expressions, separated by commas or semi−colons.

lf the screen has, i.e., 32 columns, then the statement

Code: Select all

PRINT @ 32 * (line− 1), a
will print the value of a at the beginning of the imaginary line on your screen. It will be equivalent to

Code: Select all

LOCATE 0, line
:arrow: ITALIAN

Ciao a tutti!

A partire dalla prossima versione (e già disponibile in beta) c'è un nuovo comando: PRINT@grid. Questo è un comando che consente di posizionare l'output in un punto specifico dello schermo. È simile a LOCATE, con la differenza principale che utilizza un solo numero. A questo scopo lo schermo viene suddiviso in SCREEN COLUMNS x SCREEN ROWS. Cioè, se si ha uno schermo di 40 colonne per 25 righe, questo darà luogo a 1000 posizioni. La forma del comando PRINT@ è

Code: Select all

PRINT @ posizione[, espressione]
La posizione può essere un numero, una variabile o un'espressione aritmetica, purché il valore sia compreso tra 0 e 1000 (o qualunque sia il prodotto di righe e colonne). L'elenco di stampa è lo stesso utilizzato nel comando PRINT. Possono essere numeri, variabili, stringhe o espressioni, separati da virgole o punti e virgola.

Se lo schermo ha, cioè, 32 colonne, allora l'istruzione

Code: Select all

PRINT @ 32 * (riga−1), a
stamperà il valore di a all'inizio della riga immaginaria sullo schermo. Sarà equivalente a

Code: Select all

LOCATE 0, riga
:arrow: FRENCH

Salut tout le monde !

A partir de la prochaine version (et déjà disponible en version bêta) il y a une nouvelle commande : PRINT@grid. Il s'agit d'une commande qui vous permet de placer la sortie à un endroit spécifié sur l'écran. Il est similaire à LOCATE, avec la principale différence qui utilise un seul numéro. À cette fin, l'écran est divisé en SCREEN COLUMNS x SCREEN ROWS. Autrement dit, si vous avez un écran de 40 colonnes pour 25 lignes, cela vous donnera 1000 positions. La forme de la commande PRINT @ est

Code: Select all

PRINT @ position[, expression]
La position peut être un nombre, une variable ou une expression arithmétique, à condition que la valeur soit comprise entre 0 et 1 000 (ou quel que soit le produit de lignes et de colonnes). La liste d'impression est la même que celle utilisée dans la commande PRINT. Il peut s'agir de nombres, de variables, de chaînes ou d'expressions, séparés par des virgules ou des points-virgules.

Si l'écran comporte, c'est-à-dire 32 colonnes, alors l'instruction

Code: Select all

PRINT @ 32 * (ligne− 1), a
imprimera la valeur de a au début de la ligne imaginaire sur votre écran. Ce sera équivalent à

Code: Select all

LOCATE 0, ligne
Post Reply