Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get VFP OLE Server to use error procedure
Message
 
 
To
05/05/1998 16:26:56
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00097111
Message ID:
00097314
Views:
26
Donald,

The VFP OLE server can't do anything to cause screen I/O. I've got a server based on Form and it just sits in the corner of the screen. I change the form.BackColor to indicate 3 conditions, Ok, Error, Logging. Other than that it's Error() method only calls a udf that uses textmerge to log the error to a file. The methods that the client call all return error state if an error occurs. I don't think you can just shutdown the server, it's the resposibility of the client to get rid of the thing it CreateObjected.

>>You can't do any screen IO from a VFP Server. You'll need to write the information to the error log.
>
>Thanks for responding Craig.
>
>Actually I am using a MessageBox call and I got it to work with very basic information. It still manages to go back to the VFP message. Now I have to figure out how to get the class to release without returning to the method that called the error.
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