foo('one', 'two', 'three') FUNCTION foo(luP1, luP2,luP3, luP4, luP5) LOCAL lnPcount, lnI lnPcount = PCOUNT() LOCAL ARRAY laParam[lnPcount] FOR lnI=1 TO lnPcount laParam[lnI] = EVALUATE("luP" + TRANSFORM(lnI)) ENDFOR FOR lnI=1 TO lnPcount ? laParam[lnI] ENDFOR RETURN>
>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 >