Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Method of class.
Message
 
 
To
19/06/2000 11:19:58
Randy Riegel
Zimish Contracting
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00381785
Message ID:
00381812
Views:
13
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
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform