Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OK to search .vcx file programatically?
Message
 
 
To
15/09/1998 14:09:01
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00136686
Message ID:
00136863
Views:
17
Sylvia,

1) there is absolutely nothing wrong with running a SELECT against the vcx to see if a class exists.

2) If you are trying to create this object within the method code of another object, the objects' Error() method takes precedence over ON ERROR handlers. So you can handle the error there and not have to worry about saving, resetting and restoring the global handler.

3) You could also wrap the CreateObject with your own object/UDF as a reusable component.

>I didn't know this could be done. Are you saying that this local error routine will not overwrite my global error routine after I exit from this module? If that's the case, then you're right, this would be better.
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