Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loopin a variable length array
Message
De
22/02/1999 00:31:18
 
 
À
20/02/1999 17:06:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00189697
Message ID:
00189874
Vues:
11
Treat the array as a LIFO stack:
do while !isnull(this.ToDoObjects[1])
    lnTopOfStack = alen(this.ToDoObjects)
    loCurrent = this.ToDoObjects[lnTopOfStack]
    loTopOfStack = lnTopOfStack - 1
    if lnTopOfStack = 0
        this.todo[1] = null
    else
        dimension this.ToDoObjects[lnTopOfStack]
    endif
    * do whatever with loCurrent
enddo
If you don't want to constantly redimension the array, create and maintain a corresponding ToDoObjectCount property.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform