Results 1 to 4 of 4

Thread: listview question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 1999
    Location
    Israel
    Posts
    79
    how can i delete a specific row from a listview ?


  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Code:
    ListView1.ListItems.Remove IndexOfTheRow
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 1999
    Location
    Israel
    Posts
    79
    thanks, but its not exactly what i had in mind.
    maybe still you can help.

    i am reading files ftom a folder into listview , i make a refresh on every click on the listview.
    so i read the selected item into a textbox

    Text1.Text = ListView1.SelectedItem

    and at the end of the refresh i do the oposite. take the selected item from the textbox

    ListView1.SelectedItem = Text1.Text

    at the end of this, it works, but i get two files with this same name

    what can i do to fix this ?

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    I'm a bit confused

    Looks like you having something for renaming those files?
    Maybe you have a listitems.add somwehere?
    You should post your code an we'll find out
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width