Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File exists, trap if y/n to overwrite
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00219790
Message ID:
00219799
Vues:
22
>Greetings!:D
> OK, todays problem:) Actually I think it's an easy one, but I can't seem to find an answer for it...I'm exporting fields to an Excel sheet, when I do so, and the file already exists, a dialog comes up and asks if I want to overwrite or not. Is there someway to trap which button I chose? The thing I'm wanting to do is to alter a progress display if the no button is hit. Any suggestions?
>
> I appreciate any help you can give:)

Hi John,

I think you'd have to SET SAFETY OFF, develop your own form and routine to check for the existence of the file and proceed from there. An alternative is to check the date/time stamp before and after the operation. If they're different, the file was overwritten.

hth,
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