Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Array by Reference to anoher Form
Message
De
18/07/2006 23:00:24
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
18/07/2006 22:54:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01137472
Message ID:
01137478
Vues:
20
>Hi, all,
>
>I'm trying to pass one array by reference, from one form to another form, but it only pass the first column,
>
>
>Form1
>DIMENSION laFiles[nCopyNo]
>lnFiles=ADIR(laFiles,oApp.cAppPath+"\Tmp\"+lcNameFile+"*.*")
>DO FORM gc_sendmail WITH lcNameFileToPrint, .txtCodigo.Value, 1,laFiles
>
>Form2
>INIT:
>LPARAMETERS tcNomeFicheiro,tcCodTer,tnTipoTer,taFiles
>ThisForm.aFiles=taFiles
>
>
>
>Thank's
>
>João Batista

When sending an array by reference, prefix its name with a @ in the call:

DO FORM gc_sendmail WITH lcNameFileToPrint, .txtCodigo.Value, 1,@laFiles

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform