General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only