Randy,
Is it only the Init() where you are having problems? How are you instantiating the object? Is it contained within another object, if so the Init() will be internally called by VFP with no parameters during object instantiation.
>I have a custom class in which I has many methods in it. I am having trouble with the Error method of the class, it only works some times. Other times I just get a regular Foxpro error instead of the error hitting the Error method. Here is an example:
>
>The following code in the Init of the class will call the Error method of the class:
>
>lparameters a, b, c
>
>use "nofile.dbf" && This files doesn't exist
>
>
>The following code will NOT call goto the Error method of my class but instead give me a regular Foxpro error message.
>
>lparameters a, b, c
>
>if pcount() = 3
> use "nofile.dbf" && This file doesn't exist
>endif
>
>
>Can anyone tell me why this is happening? I'm using VFP 6.0 SP 3