Ce que fait la commande
EditBoxDepth prend index (un entier), et rend un entier. C'est la première de 2 formes.
Syntaxe
1
EditBoxDepth(index integer) → integer2
EditBoxDepth(index integer, depth integer)Paramètres
| Nom | Type | Dans les formes |
|---|---|---|
| index | integer | toutes |
| depth | integer | 2 |
Ce que rend chaque forme
| 1 | EditBoxDepth(1) | integer |
| 2 | EditBoxDepth(1, 1) | rien |
Exemple · engendré
Forme 1 : la commande rend l'identifiant
DO Print(EditBoxDepth(1)) Sync()LOOPForme 2 : vous choisissez l'identifiant
EditBoxDepth(1, 1)DO Sync()LOOPEditBoxDepth 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.