Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing an array parameter
Message
From
08/05/1998 09:56:03
 
 
To
07/05/1998 13:04:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00097380
Message ID:
00098052
Views:
27
>>>>I need to receive an array as a parameter, but I am just not getting it. How do I go about this?
>>>>
>>>>TIA
>>>Tom,
>>>What do you mean by receive ? Receive in a function or from a function. Anyway you would need to create the array first and then pass by reference. :
dimension myArray[4]
>>>myArray[1]=1
>>>myArray[2]=2
>>>myArray[3]=3
>>>myArray[4]=4
>>>=processmyarray(@myArray)
>>>? myArray[3]
>>>
>>>function processmyarray
>>>lparameters aAnArray
>>>aAnarray[3]="Hello"
Cetin
>>
>>It turns out that my problem is that I call a function with does a CREATEOBJECT(classname,parameter) and that the array does not survive CREATEOBJECT.
>You mean you call createobject(class, anArray). If so are you sure you're passing by reference ? -createobject(classname, @aparmArray)-
>Cetin

Yes, I am sure.
Tom
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform