Dim i as long,j as long, k as long, n as long, max as string
n=ListBox1.ListCount-1
for i=0 to n-1
max= ListBox1.List(i)
k=i
for j=i+1 to n
if max<ListBox1.List(j) then
max= ListBox1.List(j)
k = j
end if
next j
ListBox1.List(k)=ListBox1.List(i)
ListBox1.List(i) = max
next i
Сейчас этот форум просматривают: Google-бот и гости: 110