Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Errors Off
Message
From
26/03/1999 10:03:16
Pascal Binette
Pratt & Whitney Canada
Saint-Hubert, Quebec, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Set Errors Off
Miscellaneous
Thread ID:
00202349
Message ID:
00202349
Views:
55
I am writing an application that uses DDE Functions. When the program loads, I want to check if the DDE Server is opened or not. To do so, I use the FindWindow commandand a loop. If it is closed, I want to open it. That's where I have a problem.

When the DDE Server loads, it asks the user to log on. Up to that point, FindWindow returns 0(not found). However, wheb you log on, the DDE Server starts opening tables, indexes, and other stuff, and is not yet ready, but FindWindow now finds the window. Because of this, my program gets out of the loop, and issues a DDEInitiate, and I get an error message. Because all systems are not the same, I can't wait for let's say 10 seconds, and then issue my DDEInitiate. I tried to handle that error message, but VFP does not handle that error(but hanles any other errors I might have).

Now, does anybody knoe a way of handling that error? Or maybe there is a command that lets you not display any errors(such as a SET ECHO OFF, or SET ERROR OFF)?
Next
Reply
Map
View

Click here to load this message in the networking platform