Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lineno
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: Lineno
Divers
Thread ID:
00458694
Message ID:
00459236
Vues:
25
Thanks Larry!

I forgot to trap the last line processed was the errtrap function... It should be pass in as a parameter...


--->>>

>Name = IIF ( m.Name = "PROCEDURE ", SUBSTR ( m.Name, 11 ), m.Name )
>Line = "Line Number: " + STR(LINENO())
>INSERT INTO ERRORS VALUES ( DATE(), TIME(), m.Name, ERRNUM, Msg, m.Code, m.Line)

*snip*

This will fill the table with the line number of the function Errtrap, not the line number where the error occurred. You would need to pass this in as a parameter.
Larry Miller
MCSD, MVP Visual FoxPro
LMiller3@bellatlantic.net

To maximize our learning it is essential to ask: "How can we get the most from every mistake we make?" -- Michael Gelb and Tony Buzan
Joe Mamokan
Database Specialist
Email Address: mamokan@eudoramail.com
Url Address: http://visnet_dd.tripod.com
"Can you VISUALIZE Quick Data Access"
Cell # +639172482033
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform