Article View: free.it.visual-basic
Article #1016Re: help me please!!aiutino ;-)
From: ~Incoming
Date: Tue, 14 Dec 2004 16:00
Date: Tue, 14 Dec 2004 16:00
59 lines
2674 bytes
2674 bytes
Ciao, Rita!
hai scritto xxpud.278656$b5.13567999@news3.tin.it
Fri, 10 Dec 2004 22:36:13 GMT:
>� una settimana che sto conoscendo VB.
>Chi mi pu� aiutare a risolvere questo programmino?
>xxx Grazie xxx
>allora
>Scrivere un programma in cui ci sono due liste e tramite 4 command si deve -con il 1�, trasportare un elemento alla volta della
>prima lista nella seconda (e quindi cancellarlo dalla prima)
>-con il 2�, trasportare tutti gli elementi della lista 1 nella 2(e poi cancellarli)
>-con il 3� e il quarto si deve fare il procedimento inverso(dalla 2� alla prima)
>Naturalmente gli elementi nelle liste sono caricati gi�.
>Ringrazio infinitamente chi possa aiutarmi
prego, se ci riesco!
>xxx Rita xxx
usi le listbox! vero?
c'e' la possibilita' di selezioni multiple! vero?
click command1
if lst1.listindex<>-1 then
for x= lst1.listcount-1 to 0 step -1
if lst1.selected(x) then
lst2.additem lst1.list(x)
lst1.removeitem x
end if
next x
end if
non c'e' la poss di sel multiple!
if lst1.listindex<>-1 then
lst2.additem lst1.list(lst1.listindex)
lst1.removeitem lst1.listindex
end if
click command2
if lst1.listcount>0 then
for x= lst1.listcount-1 to 0 step -1
lst2.additem lst1.list(x)
lst1.removeitem x 'oppure dopo il ciclo for x ...
next x
lst1.clear 'pulisci la listbox meglio
'se pulisci dopo, il ciclo va bene anche da 0 a listcount-1 step 1
end if
e il contrario con gli altri 2 command!
Cordialita', ~Incoming.
Technical Details
Message-ID:
<cpnl7n$r8l$3@lacerta.tiscalinet.it>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!213.205.37.207.MISMATCH!draco.tiscalinet.it!not-for-mailReferences:
<xxpud.278656$b5.13567999@news3.tin.it>Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,96dca4516524585e X-Google-Attributes: gidf94ee,public X-Google-Language: ITALIAN,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!213.205.37.207.MISMATCH!draco.tiscalinet.it!not-for-mail From: "~Incoming" <speriamo.che.me.l@cavo.it> Newsgroups: free.it.visual-basic Subject: Re: help me please!!aiutino ;-) Date: Tue, 14 Dec 2004 17:00:26 +0100 Organization: Tiscali Spa Lines: 61 Message-ID: <cpnl7n$r8l$3@lacerta.tiscalinet.it> References: <xxpud.278656$b5.13567999@news3.tin.it> NNTP-Posting-Host: ppp-62-11-116-238.dialup.tiscali.it X-Trace: lacerta.tiscalinet.it 1103058999 27925 62.11.116.238 (14 Dec 2004 21:16:39 GMT) X-Complaints-To: abuse@tiscali.it NNTP-Posting-Date: 14 Dec 2004 21:16:39 GMT 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 FL-Build: Fidolook 2002 (SL) 6.0.2800.86 - 14/6/2003 22:16:25 X-Comment-To: Rita