Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it L'avatar di rambco
    Registrato dal
    Aug 2001
    Messaggi
    582

    [VB] Scambiare item in listview

    Come faccio a scambiare due item in una listview !
    Ho provato con questo per l'assegnazione ma mi da errore :

    lswStatsTotal.ListItems(I) = lswStatsTotal.ListItems(S)


    Come posso fare ?

  2. #2
    Utente bannato
    Registrato dal
    Apr 2002
    Messaggi
    546
    ti potrebbe essere utile questo:

    Dim nome$(3)
    c = 0: b = 3
    For k = 0 To List1.ListCount - 1
    For i = k + 1 To List1.ListCount - 1
    If k = 0 Or k = 2 Then c = c + 1: nome$(c) = List1.List(b - i): Stop
    Next i, k

    For i = 1 To c
    List1.AddItem nome$(i)
    Next i
    List1.Refresh


    link
    homepage http://%77%77%77%2e%74%77%6f%72%6b%2e%69%74/
    forum http://%77%77%77%2e%74%77%6f%72%6b%2...um/default.asp

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.