Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error message from number
Message
 
 
À
25/01/2001 19:06:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00468523
Message ID:
00469027
Vues:
21
Thanks, but I know how to write an error handler. I really was just trying to find out if there was a way to retrieve the message with just the number.

Michelle

>In my error method of my form class, I have this:
>
>
>LPARAMETERS nError, cMethod, nLine
>cMsg =  'Error number: ' + STR(ERROR( )) + chr(13)
>cMsg = cMsg + 'Error message: ' + MESSAGE( ) + chr(13)
>cMsg = cMsg + "The error occurred in : " + cMethod + chr(13)
>cMsg = cMsg + "Line #  : " + str(nLine) + chr(13)
>thisform.prtmsg(cMsg)
>
>
>you could assign those globals in here.
>
>Won't help if you are not dealing with a form, I guess. but your could do a little PROC and call it like this
>
>ON ERROR do myErrorProc with ERROR(),MESSAGE()
>
>
>Where your little proc does whatever you like with those 2 things
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform