Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On error-lineno()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00227975
Message ID:
00227982
Vues:
23
>You need to pass the LINENO() in your on error call. As in:
>
>ON ERROR DO CatchErr WITH ERROR(), MESSAGE(), LINENO(), PROGRAM()
>
>>I am trying to catch errors using
>>on error do catcherr where catcherr.prg contains:
>>"str(ERROR( ))+MESSAGE( )+str(LINENO( ))+pROGRAM( )"
>>
>>but the lineno() reports back the lineno of catcherr, not where the error actually happens!

Josh, I may not have conveyed too well but I did that.
"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