Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ON ERROR DO what_err WITH ERROR(), ... - ERROR() = 0
Message
 
À
24/09/1999 11:13:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00268523
Message ID:
00268539
Vues:
22
>In a driver program I have
>
>ON ERROR DO what_err WITH ERROR(),MESSAGE(),PROGRAM(),LINENO(),MESSAGE(1)
>
>BRSWX && invalid command
>
>and in what_err I have
>
>LPARAMETERS lnError, lcMessage, lcProgram, lnLineNo, lcCode
>LOCAL laErrData
>DECLARE laErrData[1]
>
>ON ERROR *
>= AERROR(laErrData)
>
>RETURN
>
>Problem ERROR always returns 0, laErrData[1,1] returns 16 as expected.
>
>Works in FPW 2.6. What am I doing wrong?
If you have the Debug Info unchecked for the project, you will get line=0. Check the option and you should start receiving your line numbers.

Wayne
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform