Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passar uma array como parametro
Message
 
À
14/03/2002 14:10:31
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00632929
Message ID:
00632941
Vues:
9
This message has been marked as the solution to the initial question of the thread.
Oi Breno,

No seu exemplo vc está passando uma String "aPedido".
Se vc estiver usando VFP como cliente deste componente, tente chamar desta forma:
lcRetCon = loCon.concessao(,,,,,@aPedido)
No componente, trate o array normalmente e, para evitar erros de compilação, indique para o compilador que vc tem um array definido externamente à função com EXTERNAL ARRARY:
FUNCTION Concessao
  LPATAMETER taPedido
  
  EXTERNAL ARRAY taPedido

  FOR lnCont = 1 TO ALEN(taPedido,1)
     * Algum processamento...
  NEXT
    
ENDFUNC
Um abraço!
-----
Fabio Vazquez
http://www.fabiovazquez.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform