>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