Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Errors Off
Message
De
26/03/1999 10:03:16
Pascal Binette
Pratt & Whitney Canada
Saint-Hubert, Québec, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Set Errors Off
Divers
Thread ID:
00202349
Message ID:
00202349
Vues:
49
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)?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform