/ Forside / Teknologi / Udvikling / VB/Basic / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
VB/Basic
#NavnPoint
berpox 2425
pete 1435
CADmageren 1251
gibson 1230
Phylock 887
gandalf 836
AntonV 790
strarup 750
Benjamin... 700
10  tom.kise 610
pick item from ListBox
Fra : asd987


Dato : 30-10-04 18:45

Hello,

How can I pick at random one item from a ListBox?

Thanks,

Sjoerd



 
 
Harald Staff (02-11-2004)
Kommentar
Fra : Harald Staff


Dato : 02-11-04 20:33

Hi Sjoerd

Dim L As Long
Randomize
L = Int(Rnd() * Me.ListBox1.ListCount)
ListBox1.ListIndex = L

HTH. Best wishes Harald

"asd987" <asd987@home.nl> skrev i melding
news:cm0jum$h2o$1@news5.zwoll1.ov.home.nl...
> Hello,
>
> How can I pick at random one item from a ListBox?
>
> Thanks,
>
> Sjoerd
>
>



Søg
Reklame
Statistik
Spørgsmål : 177458
Tips : 31962
Nyheder : 719565
Indlæg : 6408170
Brugere : 218881

Månedens bedste
Årets bedste
Sidste års bedste