πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #2365

Re: avvertire un utente che sta salvando un file gia esistente

#2365
From: Genesio Conti
Date: Mon, 09 Jun 2003 16:54
22 lines
1921 bytes
"Alessio" <@ .it> ha scritto nel messaggio
news:hbOEa.99319$g92.2366727@news2.tin.it...
> o creato un programma compatibile con diversi formato di testo nella quale
> devo inserire una modalita di avvertimento che l'utente finale sta per
> salvare su un file esistente e inserire un messaggio personalizato ( non
di
> Windows ) Ad esempio
> il file Pinco.doc esiste gia sei sicuro di riscriverlo?.
> o il seguente codice ( dove devo inserire questo tipo di modalita
> grazie in anticipo per l'aiuto
>
> PS: chiedo scusa se non avete capito questo messaggio

Se utilizzi CommonDialog, prima del metodo CommonDialog1.ShowSave, imposta
il flag
cdlOFNOverwritePrompt, e ti verrοΏ½ mostrato il msg " Il file esiste, ecc."

altrimenti prima di salvare il file :
if Dir$(nome_file_con_path) <> "" then ' il file esiste che facciamo ?
...
end if
Technical Details
Message-ID: <TY2Fa.64566$pR3.1385021@news1.tin.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!news-out.tin.it!news-in.tin.it!news1.tin.it.POSTED!not-for-mail
References: <hbOEa.99319$g92.2366727@news2.tin.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,ff90c2e0f5ee5253
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2003-06-09 09:56:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!news-out.tin.it!news-in.tin.it!news1.tin.it.POSTED!not-for-mail
From: "Genesio Conti" <genesio.conti@virgilio.it>
Newsgroups: free.it.visual-basic
References: <hbOEa.99319$g92.2366727@news2.tin.it>
Subject: Re: avvertire un utente che sta salvando un file gia esistente
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <TY2Fa.64566$pR3.1385021@news1.tin.it>
Date: Mon, 09 Jun 2003 16:54:11 GMT
NNTP-Posting-Host: 62.211.229.202
X-Complaints-To: newsmaster@tin.it
X-Trace: news1.tin.it 1055177651 62.211.229.202 (Mon, 09 Jun 2003 18:54:11 MET DST)
NNTP-Posting-Date: Mon, 09 Jun 2003 18:54:11 MET DST
Organization: TIN