Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form array to a Vfp function
Message
 
 
À
13/06/2012 07:10:48
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01545940
Message ID:
01545959
Vues:
68
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform