Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locfile()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00119369
Message ID:
00120270
Vues:
18
>>>>The Locfile() command returns a VFP error if you click CANCEL, instead of a null string or other "This didn't work" value. I *can* use Getfile(), although I would prefer Locfile() for a specific use. Any suggestions other than disabling our standard error handler before the call, trapping for this error and then re-enabling the error handler?
>>>>
>>>>TIA
>>>>Barbara
>>This may be totally off the wall and I haven't tried it my self but how about the Common Dialogs Control - COMDLG32.OCX. It has several methods which you could modify to handle returns your self.
>
>Thanks, Terry. I will take a look at COMDLG32, although at present I'm using GetFile() which does *most* of what I want.
>
>Barbara

Barb,

Just my 2 cents (US) on this. I avoid LOCFILE() like the plague. AFAIK, there's now way to avoid having it bomb the calling routine. It's one of the reasons (back in 2.6 with genscrn) that I never let it generate code to open my tables.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform