Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem Trapping Error 114 VFP Message Instead
Message
De
04/02/2003 22:50:07
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Problem Trapping Error 114 VFP Message Instead
Divers
Thread ID:
00749215
Message ID:
00749215
Vues:
164
Good evening

My error trap is not catching 114. Instead the VFP message appears ("Index does not match table....")

Althought there is a lot of code in the visual class custom object, the part that traps errors in loMy is darn simple.

In loMy.OnError Event
LPARAMETERS nError, cMethod, nLine
THIS.inerrnum = nError
RETURN

In loMy.mymethod
ON ERROR THIS.Error()

In loMy.opentable (a branch from loMy.mymethod)
the vars looks like this:
lcDir = C:\mydir\"
lcFileName = "mytable.dbf"
USE (lcDir+lcFileName) IN 0 ALIAS mytablealias

The above sequence traps errors smoothly as tables are sequentially opened. On the next iteration the table alias is selected and closed before opening another; using the same alias.

Any ideas on how to stop the VFP Message from popping and traping the error number? Any input would be greatly appreciated.

Thanks
Don Lowrey
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform