Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00693166
Message ID:
00693219
Vues:
15
Joseph,

David gave you one way to handle this situation, another is to pass the object that the array is a property of to the function as in;
InsertArrayItem(This,"aTempArray","SomeValue")

* Inserts an array element into an array.
* For 1-D array
* aArray - array name
* sContents - contents to insert
Function InsertArrayItem
LPARAMETER poObject, pcArrayName, pcContents

lnRows = ALEN(poObject.&pcArrayName,1)+1
DIMENSION poObject.&pcArrayName(lnRows)
poObject.&pcArrayName(lnRows) = pcContents
RETURN
endfunc
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform