ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Re: _vfp.Eval() - curiosité   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

sam. 08 juillet 2017, 13h39
Gregory Adam
Belgique Belgique

atoutfox.public.association

Re: _vfp.Eval() - curiosité

Salut Francis,

Cela te va ?


Remarks

Native foxpro classes instantiated with both _vfp.Eval() and _vfp.SetVar() are considered to be COM objects
and hence arrays are passed by value rather than by reference.

In order to pass arrays by reference you need to use ComArray(.., 11) after each instantiation of the class.

eg
obj = _vfp.Eval([createObject('MyClass', param1, ...)]
local myArray[1]
=comarray(obj, 11)
result = obj.Method(@myArray)



Permalink : http://www.atoutfox.org/nntp.asp?ID=0000018336
20 087 messages dans le forum • Liste complète des messages

Publicité

Les pubs en cours :


www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2024.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3