Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array Question
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00693166
Message ID:
00693219
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform