Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to trap error 52
Message
 
 
À
15/01/2001 08:52:42
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00463728
Message ID:
00463769
Vues:
13
Hi!

No, there are no way for this. I just use a programming discipline in such case. It says: 'allocate resource(s), work with them than freem them'. Thus, open table, work with it and than close it. This way should work all your programs with no exceptions. When you do not follow this rule, some your program might show you errors like that (VFP just shows dialog box). It is allocation/deallocation of resource problem in the programming and it requires both discipline and good organization of application.


>Is there any way to change the default behavior of VFP when error 52 occurs ( no table is open in the current workarea)? A dialog box pops up to select a table and stays up until the correct table is selected. How can I keep the dialog box from coming us and just trap the error myself? For example, if table "T" is not open and I code "Repl t.x with something" the dialog box to open a table will appear. The user has no idea what table is supposed to open and the only way out is to shut the machine down. Since the error never actually occurs I can't even trap it in development mode. There must be some setting I am not aware of to change this behavior. Thanks.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform