Ce que fait la commande
PlatformShareAsync prend text (une chaîne), et rend un entier. C'est la première de 2 formes.
Syntaxe
1
PlatformShareAsync(text string) → integer2
PlatformShareAsync(text string, title string, url string) → integerParamètres
| Nom | Type | Dans les formes |
|---|---|---|
| text | string | toutes |
| title | string | 2 |
| url | string | 2 |
Chaque forme rend
integer
Exemple · engendré
Forme 1 : la plus courte
DO Print(PlatformShareAsync("hello")) Sync()LOOPForme 2 : avec tous les arguments
DO Print(PlatformShareAsync("hello", "value", "https://example.com")) Sync()LOOPPlatformShareAsync 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.