🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Errore in mancanza file...

#1944
From: Cerberus
Date: Fri, 28 Nov 2003 13:54
30 lines
1894 bytes
non so se potrebbe andare bene, cmq
Private sub ControlloFile(PathFile as string)
on error goto Errore
Image1.picture=loadpicture(pathfile)
Errore:
select case err.number
case=53
    msgbox "Impossibile trovatre il File",vbinformation,"Caricamento non
effettuato"
Case=0
    Exit sub
case else
    msgbox err.number & "-" & err.description,vbcritical,"Caricamento"
end select


"Bf-109E" <chiedi@me.it> ha scritto nel messaggio
news:VYKvb.5050$up5.436735@news1.tin.it...
> Devo caricare un file (un'immagine) nel programma... ci riesco, ma voglio
> proteggerlo in caso di errore da un'uscita improvvisa.... come posso fare?
> Con OnError non va bene... con Try nemmeno....... come devo fare? :-(
> Grazie e scusate!!
>
> --
> Davide
> WWW: www.bigdave.too.it
>
> "Fra le armi tacciono le leggi" - Cicerone
>
>
Technical Details
Message-ID: <dsIxb.20155$AX1.784542@news1.tin.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!news-out.tin.it!news-in.tin.it!news1.tin.it.POSTED!not-for-mail
References: <VYKvb.5050$up5.436735@news1.tin.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII-7-bit
X-Google-Thread: f94ee,46c044ba7dfb0922
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2003-11-28 05:54:17 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!news-out.tin.it!news-in.tin.it!news1.tin.it.POSTED!not-for-mail
From: "Cerberus" <cerberus1981@tin.it>
Newsgroups: free.it.visual-basic
References: <VYKvb.5050$up5.436735@news1.tin.it>
Subject: Re: Errore in mancanza file...
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <dsIxb.20155$AX1.784542@news1.tin.it>
Date: Fri, 28 Nov 2003 13:54:17 GMT
NNTP-Posting-Host: 80.117.224.252
X-Complaints-To: newsmaster@tin.it
X-Trace: news1.tin.it 1070027657 80.117.224.252 (Fri, 28 Nov 2003 14:54:17 MET)
NNTP-Posting-Date: Fri, 28 Nov 2003 14:54:17 MET
Organization: TIN