General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only