Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/08/2005, 11:55
Avatar de lop7
lop7
 
Fecha de Ingreso: junio-2005
Ubicación: portuguesa (Venezuela)
Mensajes: 187
Antigüedad: 18 años, 11 meses
Puntos: 1
asi funciona

prueba con esto... es para hacerlo ascendentemente ,para la otra forma le cambias le signo > por < y ya

Código PHP:
Private Sub Command1_Click()
Dim k As Integer
Dim vector
(1 To 5)
vector(1) = Text1.Text
vector
(2) = CInt(Text2.Text)
vector(3) = CInt(Text3.Text)
vector(4) = CInt(Text4.Text)
vector(5) = CInt(Text5.Text)

5
For 1 To n
    
For k To n 1
        
If vector(k) > vector(1Then
            temp 
vector(k)
            
vector(k) = vector(1)
            
vector(1) = temp
        End 
If
    
Next j
Next

For 1 To 5
   List1
.AddItem (vector(x))
Next x
End Sub 
saludos