1. RE: Need LV Help ATT Derek Parnell
- Posted by jordah ferguson <jorfergie03 at yahoo.com> May 06, 2002
- 437 views
Hi Tony, i also once presented this problem before and the only help i got was from derek and he told me to be patient as he was re writing the LV routines. Tony Steward wrote: > Hi Derek, > I am hoping you can spend a couple of minutes to help me, as no one from > > the list has tried. > > In my program in KeyReturn1_onClick() I am having trouble with > getLVItemSelcted. It is geting the selected items from Key2ndLV and > wether I use the returned codes or use the Ke2dLVID that collects the ID > > when adding the items I get {2,3} but if I try to retrieve these items > or change them I get 3 not avail from seq length of 2. Exactement!! same problem i'm facing, Tony thanx for pointing this out. i thought it was either my PC or just me > If you run kt2002.exw, click on the key in the main LV then selec both > keys in the lower LV(Key2ndLV) and select the return button. In the new > window tht opens select Returned OK and click the return key button. > > I hope my explination is adequate and you will spare me 1/2 hour. If not > > then thanks anyway. > > File Location: > http://members.aol.com/lockmaster67/Downloads/KT2002.zip > > Tony Steward > > jordah make proggys....or stand aside
2. RE: Need LV Help ATT Derek Parnell
- Posted by Sabal.Mike at notations.com May 06, 2002
- 421 views
Can I see your full KeyReturn1_onClick() routine? I haven't been following this thread much, since I'm not the most experienced LV user; but it is relevant to my current project, and maybe we can isolate the issue together. Also, what happens when running the program under version 0.57.4? Mike Sabal >>> jorfergie03 at yahoo.com 05/06/02 09:10AM quoted Tony Steward as saying >>> > > when adding the items I get {2,3} but if I try to retrieve these items > or change them I get 3 not avail from seq length of 2.
3. RE: Need LV Help ATT Derek Parnell
- Posted by Derek Parnell <ddparnell at bigpond.com> May 06, 2002
- 393 views
Sabal.Mike at notations.com wrote: > Can I see your full KeyReturn1_onClick() routine? I haven't been > following this thread much, since I'm not the most experienced LV user; > but it is relevant to my current project, and maybe we can isolate the > issue together. Also, what happens when running the program under > version 0.57.4? > > Mike Sabal > > >>> jorfergie03 at yahoo.com 05/06/02 09:10AM quoted Tony Steward as > saying >>> > > > > when adding the items I get {2,3} but if I try to retrieve these > items > > or change them I get 3 not avail from seq length of 2. > Are you using insertLVItem() or addLVItem() from the new win32lib? insertLVItem() returns a sequence {index, id} where index is the position within the LV of the new item and id is the item's unique identifier. The item's position can change within the LV but the id never changes. addLVItem() returns an integer id. The unique id of th eitem. It does not return its position in the listview 'cos addLVItem, by default, adds to the top of the listview. ------------- Derek.
4. RE: Need LV Help ATT Derek Parnell
- Posted by Tony Steward <tony at locksdownunder.com> May 07, 2002
- 440 views
Derek Parnell wrote: > > Sabal.Mike at notations.com wrote: > > Can I see your full KeyReturn1_onClick() routine? I haven't been > > following this thread much, since I'm not the most experienced LV user; > > but it is relevant to my current project, and maybe we can isolate the > > issue together. Also, what happens when running the program under > > version 0.57.4? > > > > Mike Sabal > > > > >>> jorfergie03 at yahoo.com 05/06/02 09:10AM quoted Tony Steward as > > saying >>> > > > > > > when adding the items I get {2,3} but if I try to retrieve these > > items > > > or change them I get 3 not avail from seq length of 2. > > > > Are you using insertLVItem() or addLVItem() from the new win32lib? > > insertLVItem() returns a sequence {index, id} where index is the > position within the LV of the new item and id is the item's unique > identifier. The item's position can change within the LV but the id > never changes. > > addLVItem() returns an integer id. The unique id of th eitem. It does > not return its position in the listview 'cos addLVItem, by default, adds > > to the top of the listview. > ------------- > Derek. > > Thanks for your time. It seems in my hast to zip the file I made an error. I am trying (when my isp will let me) to put the correct zip on the internet. I know working with this large file is a pain but I will direct you directly to the problem. Please not I am not using the new win32lib. I did try using it yesterday but could not get my LV to respond to the on click event. The problem I seem to be having is the when I use get LVItemSelected on the second LV which has 2 items in it. It returns {3,2} and my list of unique ID's is also {3,2} then getLVItemText(LV, ID, 1) compains there is only 2 sequences when it gets to ID 3. I have acheived the before so I must be doing something wrong. Thanks Tony