Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening a table without showing an error
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Opening a table without showing an error
Divers
Thread ID:
00386523
Message ID:
00386523
Vues:
39
I'm sure there has to be a way to do this, but I'm drawing a blank. I need to open a table, but if there's any problems, I don't want that open file dialog to come up. I just want it to return a value so I can deal with it silently.

I keep coming back to ON ERROR, but I don't want to have a seperate program to handle the error. Can I do it all in one program? Like have ON ERROR at the top and call a sub program in the same program file? And if I do that, how do I pass the information back to the line that had the error?

I'm trying to get something like:
IF open_table("mytable")
  ...
ELSE
  ...
ENDIF
Thanks,

Michelle
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform