Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error not trapped inside TRY/CATCH block
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01050338
Message ID:
01050908
Vues:
37
>How are you updating the table structures. Do you use Stonefield Database Toolkit or something equivalent?
>
>Possibly the answer would be to get the structure correct before opening the form?


Stacy,

Thanks for the response.

The updating isn't the problem. I'm already using SDT to handle data structure updates. However, I have no control over a client restoring an older data set to do testing. It's a weird situation, because the problem is clearly caused by them, but the interactive error was causing their batch scheduler to hang.

I did find a workaround through the form's Error event. First, I check to see if we're running the form through our command line utility (via Application.ServerName). If so, I log the error and exit the process completely. Otherwise, I just pass the error back out via the ERROR statement. This solution prevents the interactive error dialog from popping up.

Laterness,
Jon
Jon Rosenbaum
Devcon Drummer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform