ApiFree

Family: Studio · One form

What it does

Frees an API task and the answer it holds.

Syntax

ApiFree(tache integer) → integer

Parameters

NameTypeMeaning
tacheintegerThe task id returned by ApiRequest().

Every form returns

integer

1 if the task existed, 0 otherwise.

Good to know

  • After this call the id is unknown: ApiStatus() returns -1.
  • Editor and HTML5 exports only: native (Bevy) builds stop with an unsupported-command error.

Example · generated

DO  Print(ApiFree(1))  Sync()LOOP

ApiFree is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

133 commands in Studio