Article View: free.it.visual-basic
Article #2790Re: Avviso Tempo Scaduto
From: Rebis
Date: Sat, 08 Feb 2003 18:20
Date: Sat, 08 Feb 2003 18:20
19 lines
1978 bytes
1978 bytes
"rinaffo" <rinaffo@libero.it> ha scritto nel messaggio
news:BO31a.95368$ZE.2626493@twister2.libero.it...
> Sto sviluppando un programma che gestisce una videoteca:
> Come posso fare a far segnalare ogni giorno le tessere che scadono in quel
> giorno?
>
> Grazie Rino
>
Per esempio confrontando la data di attivazione della tessera (che
probabilmente sar� memorizzata in un database) con la data di quel giorno
(che in VB viene memorizzata nella variabile di sistema Now). Se la data di
attivazione � in formato Date puoi semplicemente scrivere un'istruzione del
tipo If DataAttivazione = Now then MsgBox("Tessera Scaduta!"). Se non � in
formato Date ce la puoi far sempre diventare con il comando Format$: Se ad
esempio ce l'hai in formato stringa potresti scrivere Format$
(DataAttivazione$, "dd-mm-yyyy"), cio� �converti la stringa in una data del
tipo giorno-mese-anno�
Technical Details
Message-ID:
<uTb1a.97094$ZE.2678321@twister2.libero.it>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mailReferences:
<BO31a.95368$ZE.2626493@twister2.libero.it>Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII X-Google-Thread: f94ee,b82228861fced860 X-Google-Attributes: gidf94ee,public X-Google-ArrivalTime: 2003-02-08 10:20:22 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail From: "Rebis" <djrebis@libero.it> Newsgroups: free.it.visual-basic References: <BO31a.95368$ZE.2626493@twister2.libero.it> Subject: Re: Avviso Tempo Scaduto Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: <uTb1a.97094$ZE.2678321@twister2.libero.it> Date: Sat, 08 Feb 2003 18:20:10 GMT NNTP-Posting-Host: 151.24.216.118 X-Complaints-To: abuse@libero.it X-Trace: twister2.libero.it 1044728410 151.24.216.118 (Sat, 08 Feb 2003 19:20:10 MET) NNTP-Posting-Date: Sat, 08 Feb 2003 19:20:10 MET Organization: [Infostrada]