Define Class ParameterX As Custom Function This_Access(tcMember) If Not Pemstatus(This, tcMember, 5) This.AddProperty(tcMember, Null) Endif Return This Endfunc EnddefineTo use:
aa=NewObject('parameterx','parameterx.prg') aa.nbb=10 aa.ctext='my text' aa.lValue=.T. Myfunc(aa)
Function MyFunc lparameter toAA ?toAA.nbb ?toAA.ctext ?toAA.lValue endfunc>OK, thanks.
>>>>Local Array myArray(1) >>>>Dimension myArray(5) >>>>myArray(1) = [One] >>>>myArray(2) = [Two] >>>>myArray(3) = [Three] >>>>myArray(4) = [Four] >>>>myArray(5) = [Last] >>>> >>>>foo(@myArray) >>>> >>>>Function foo >>>> parameters myArray >>>> ?myArray(1) >>>> ?myArray(2) >>>> ?myArray(3) >>>> ?myArray(4) >>>> ?myArray(5) >>>>Endfunc>>>>>Tore:
>>>>>>>foo('one', 'two', 'three') >>>>>>> >>>>>>>return >>>>>>> >>>>>>>Function foo(dog, cat, hen) >>>>>>> >>>>>>>? aPara(1) &&displays 'one' >>>>>>>? dog &&displays 'one' >>>>>>>? aPara(2) &&displays 'two' >>>>>>>? aPara(3) &&displays 'three' >>>>>>> >>>>>>> >>>>>>>return >>>>>>>