Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot access the selected table
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01356267
Message ID:
01356301
Vues:
25
It doesn't actually produce an error which was why in the first place I couldn't trap it. How would I invoke your method? Does the prg need to be suspended?


>LOCAL lcError, lcMessage, llError
>
>LOCAL ARRAY laError
>
>llError = .f.
>* stop error handling
>lcError = ON ("ERROR" )
>
>ON ERROR llError= .t..
>
>* access your table
>
>IF llError
> AERROR( laErrorArray )
> * look in array to find what error it is
> lcMessage = laError[3]
>ENDIF
>
>* reset error handler
>ON ERROR &lcError
>
>* do something
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform