Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Table names as parameters to a class giving ERRO
Message
De
02/11/1998 10:37:32
 
 
À
02/11/1998 10:33:49
Noman Aftab
Embry-Riddle Aeronautical University
Daytona Beach, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00153497
Message ID:
00153523
Vues:
23
>Yes sir, I do pass cChildTable as a parameter to this class...
>actually what I am trying to do is convert a container into a class. Initially I had several tables and fields used here but I wanted to replace them with a variable name and pass table and field names into this class from the form. I used Lparameter cChildtable, ... ,... ,... and for passing in a parameter I defined a property with the same name and put tabel and field names in there. Please tell me what is wrong here because my class is not reading these values.

You can make simple test. Firstly, check that you use right syntax:
*** calling code
=createobject("MyClass","mychildtable")
*** your class.Init event
LPARAMETER cChildtable
=messagebox(cChildtable) && is it still here?
This.Childtable=cChildtable
*** your class other event
=messagebox(This.Childtable) && is it still here?

Do this test and tell where it bombs.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform