🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: a.bsu.programming
Article #86764

Re: VB 5.0: List Box Helpl Please

#86764
From: Randy Birch
Date: Mon, 23 Mar 1998 00:00
38 lines
2266 bytes
:How about:
:
: For I = 1 To List1.ListCount
:    List2.AddItem List1.List(I)
:   Next I

Actually its:

 For I = 0 To List1.ListCount - 1
    List2.AddItem List1.List(I)
 Next I



Randy Birch, MVP Visual Basic
VBnet, The Visual Basic Developers Resource Centre
http://home.sprynet.com/sprynet/rasanen/vbnet/default.htm


Tony Gilbert wrote in message ...
:DragonEyes wrote:
:>Hi. This is probably an easy question to answer but how in the world do you
:>get VB 5.0 to do the following?
:>
:>How do you transfer the contents(List) of a List Box to another List Box?
:>
:>Thanks for your help please E-Mail me.
:
:How about:
:
: For I = 1 To List1.ListCount
:    List2.AddItem List1.List(I)
:   Next I
:-- 
:The Sounds of Red Dwarf http://www.swoon.demon.co.uk
:Utilities for Turnpike http://www.swoon.demon.co.uk/other.htm
:PGP KeyID: 0x2FB1D3D1
Technical Details
Message-ID: <#T7mIGiV9GA.170@uppssnewspub05.moswest.msn.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6f25p4$ckv@examiner.concentric.net> <WxYCtBAvkPF1Ew1x@swoon.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5380,6a1d1989a4821a03
X-Google-Attributes: gidf5380,public
X-Google-Thread: fb992,6a1d1989a4821a03
X-Google-Attributes: gidfb992,public
X-Google-Thread: 107d8b,6a1d1989a4821a03
X-Google-Attributes: gid107d8b,public
X-Google-Thread: 110e3b,6a1d1989a4821a03
X-Google-Attributes: gid110e3b,public
X-Google-Thread: 10127e,769ac6411029baef
X-Google-Attributes: gid10127e,public
X-Google-Thread: 10b997,6a1d1989a4821a03
X-Google-Attributes: gid10b997,public
X-Google-Thread: f645d,6a1d1989a4821a03
X-Google-Attributes: gidf645d,public
X-Google-Thread: 108062,6a1d1989a4821a03
X-Google-Attributes: gid108062,public
From: "Randy Birch" <randy_birch@email.msn.com>
Subject: Re: VB 5.0: List Box Helpl Please
Date: 1998/03/23
Message-ID: <#T7mIGiV9GA.170@uppssnewspub05.moswest.msn.net>
X-Deja-AN: 336737676
Content-Transfer-Encoding: 7bit
References: <6f25p4$ckv@examiner.concentric.net> <WxYCtBAvkPF1Ew1x@swoon.demon.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: a.bsu.programming,adass.iraf.programming,comp.lang.basic.visual,comp.lang.basic.visual.misc,comp.lang.visual.basic,cz.comp.lang.basic.visual,it.comp.lang.visual-basic,microsoft.public.es.vb,microsoft.public.vb.controls,microsoft.public.vb.winapi