Page 1 of 1

Help with url manager using ListView

Posted: Sat Feb 21, 2009 4:00 am
by oToom
heya all, i once joined here a long time ago.
when i was trying to code back then.
well i decided to give it another shot.

soo...

i am creating a url manager.
this is made using a listview.
and add buttton, delete and connect.

the add button adds the url to the list.
delete, simply deletes the selected one.
and connect, RunProgram("Link")

okay, so...

little problem.

Code: Select all

Case #DeleteURL
              checked.l = #PB_Tree_Checked
              RemoveGadgetItem(#ListURL, checked)
how do i put the selected item number into a variable, so i can then delete it. or later connect to the url.

Posted: Sat Feb 21, 2009 11:19 am
by srod
GetGadgetState() ??? Of course, once you delete the item then this value is invalid.

Posted: Sat Feb 21, 2009 11:44 am
by oToom
Ahh, thank you, thank you.

Simple but hey. I didn't figure it. Lol.


Many more thanks.

oToom