Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error handler
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00458265
Message ID:
00458313
Vues:
17
>>Hi,
>> I tried to get nLine which in ERROR EVENT of my form. Why it always return 0 if I run it as EXE?
>>
>>Thank you
>
>ON ERROR do ERRHAND
>
>PROCEDURE errhand (merror, mess, mess1, mprog, mlineno)
>lcLastOnError=ON('ERROR')
>ON ERROR
>messagebox(trans(mlineno))
>ON ERROR &lcLastOnError
>endproc

Two points:

1. the question was about the Error Event,
which is distinct from the ON ERROR mechanism

2. you left out the proper arguments in your ON ERROR command example

It should read:

ON ERROR do ERRHAND with error(), mess(), mess(1), prog(), lineno()

Mike
Montage

"Free at last..."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform