Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing an array from into a function
Message
From
13/05/2003 14:30:46
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
 
 
To
13/05/2003 14:25:42
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00787842
Message ID:
00787845
Views:
12
Try something like:

DIMENSION aTemp(alen(oMine.aMyArray,1),alen(oMine.aMyArray,2))
ACOPY(oMine.aMyArray,aTemp)
MyFunc(@aTemp)

*-- If you change the array in MyFunc, copy it back into oMine.aMyArray
DIMENSION oMine.aMyArray(alen(aTemp,1),alen(aTemp,2))
ACOPY(aTemp,oMine.aMyArray)

Gary


>Hi,
>
>How can I pass an array property of a class into another function that is in a different .PRG File?
>
>oMine = Createobject("myClass")
>
>I want to call MyFunc like MyFunc(@oMine.aMyArray) . This gives me error.
>I can pass regular arrays with no problem.
>
>Is this feasible?
>
>
>Func MyFunc(tary)
>retu
>
>TIA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform