Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form array to a Vfp function
Message
 
 
To
13/06/2012 07:10:48
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01545940
Message ID:
01545959
Views:
67
>>>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).aspx

Also, you may want to skip LOCAL array declaration.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform