Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Table names as parameters to a class giving ERRO
Message
From
02/11/1998 10:37:32
 
 
To
02/11/1998 10:33:49
Noman Aftab
Embry-Riddle Aeronautical University
Daytona Beach, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00153497
Message ID:
00153523
Views:
24
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform