Ce que fait la commande
EditBoxCursorPosition prend index (un entier), et rend un entier. C'est la première de 2 formes.
Syntaxe
1
EditBoxCursorPosition(index integer) → integer2
EditBoxCursorPosition(index integer, pos integer)Paramètres
| Nom | Type | Dans les formes |
|---|---|---|
| index | integer | toutes |
| pos | integer | 2 |
Ce que rend chaque forme
| 1 | EditBoxCursorPosition(1) | integer |
| 2 | EditBoxCursorPosition(1, 1) | rien |
Exemple · engendré
Forme 1 : la commande rend l'identifiant
DO Print(EditBoxCursorPosition(1)) Sync()LOOPForme 2 : vous choisissez l'identifiant
EditBoxCursorPosition(1, 1)DO Sync()LOOPEditBoxCursorPosition est appelé et sa réponse est affichée à chaque image. La boucle DO … LOOP n'est pas décorative : un programme BASIC classique s'arrête dès qu'il n'a plus de lignes, et c'est Sync() qui dessine l'image.