>>>hi all,
>>>
>>>i have a error with :
>>>
>>>
>>>lretVal =CheckSoinsAgendaSoins( @thisform.psoinstocheck )
>>>
>>>
>>>How put a Form array to a Vfp function() ?
>>>
>>>Thank in advance for help
>>>
>>>
>>>bernhart
>>
>>The array must be a local array, e.g.
>>
>>local array laInsToCheck[1]
>>
>>acopy(laInsToCheck, thisform.psoInsToCheck)
>>
>>lRetVal = CheckSoinsAgendaSoins(@laInsToCheck)
>>
>>and then copy the array back.
>
>Won't work
What do you think? I haven't verified ACOPY function parameters, may be they are reversed. E.g. it should be
ACOPY(thisform.psoInsToCheck, laInsToCheck)
(I verified them now).
http://msdn.microsoft.com/en-us/library/aa977207(v=VS.71).aspxAlso, you may want to skip LOCAL array declaration.
If it's not broken, fix it until it is.
My Blog