SORT_ON N

DÉMARRE LE TRI AUTOMATIQUE DE L'OBJET SYSTÈME NUMÉRO N



ACTION

La commande SORT_ON N trie par ordre ascendant les articles de l'objet système désigné par son numéro N et démarre un tri automatique : à chaque action sur cet objet système (ajout ou retrait d'un article), l'objet système est trié.

Remarque: le tri automatique est arrêté par la commande SORT_OFF.


SYNTAXE : SORT_ON N


UTILISATION


ERREUR


EXEMPLE

' créer un LIST

list 1

' lui ajouter 3 articles

item_add 1,"BBB"

item_add 1,"CCC"

item_add 1,"AAA"

' démarrer le tri automatique

sort_on 1

' ajouter un article

item_add 1,"ABC"

' l'ordre est : AAA,ABC,BBB,CCC

' arrêter le tri automatique

sort_off 1

' ajouter un article

item_add 1,"ABD"

' l'ordre est : AAA,ABC,BBB,CCC,ABD


EN RAPPORT

SORT

SORT_OFF


Content created by Jack. Updated March 07, 2025