Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing an array to a form saved as a class
Message
 
À
26/01/1998 12:20:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00074112
Message ID:
00089955
Vues:
47
Something fishy is going on in what should be a simple bit of parameter passing. I have some code that looks like this:
*****************************************
DIMENSION laStats
ACOPY(this.aStats,laStats,1,-1)
oForm = CreateObject('frmStats',@laStats)
*****************************************

And in the init of the form that I am calling I have:

*****************************************
PROCEDURE INIT
LPARAMETERS taStats

this.txtStat1.Value = taStats[1]
this.txtStats2.Value = taStats[2]

ENDPROC
*****************************************

Whenver taStats is being accessed as an array I get the "tastats.prg" not found because taStats isn't an array. Shouldn't passing by reference here do the trick?

Michael G. Emmons
memmons@nc.rr.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform