Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine which line causes error in script
Message
De
07/12/2003 07:49:33
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Determine which line causes error in script
Divers
Thread ID:
00856676
Message ID:
00856676
Vues:
69
I need to determine which line causes error in script
when script is running in VFP runtime.

I can use

EXECSCRIPT(filetostr('myproc.prg'))

or

COMPILE myproc
myproc()


Unfortunately, VFP does not return the line number which causes error!

It retuns only the error message and EXESCRIPT() or myproc() line number.

Randy Pearson Codeblock returns correct line. However, I have
many SCAN iterations in my scripts and codeblock is too slow in this case.

Any idea ?
Andrus
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform