Help with url manager using ListView

Just starting out? Need help? Post your questions and find answers here.
oToom
User
User
Posts: 54
Joined: Sat May 03, 2008 5:38 pm

Help with url manager using ListView

Post 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.
Last edited by oToom on Sat Feb 21, 2009 4:12 am, edited 1 time in total.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

GetGadgetState() ??? Of course, once you delete the item then this value is invalid.
I may look like a mule, but I'm not a complete ass.
oToom
User
User
Posts: 54
Joined: Sat May 03, 2008 5:38 pm

Post by oToom »

Ahh, thank you, thank you.

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


Many more thanks.

oToom
Post Reply