View previous topic :: View next topic |
Author |
Message |
arcray Valued Contributor
Joined: 13 Jul 2001 Posts: 242 Location: Aude, France
|
Posted: Fri Jan 10, 2003 12:57 pm Post subject: Another VDSLISTS Query |
|
|
I have been playing with the COLLIST element of the VDSLISTS.DLL and have come across a problem:-
Code: | COLLIST1DBLCLICK
%A = @EXTLIST(LIST,INDEX,COLLIST1)
%B = @EXTLIST(LIST,ITEM,COLLIST1) |
If anything other than Column 0 is double Clicked, %A is equal to -1 and %B is NULL
If Column 0 is double-clicked then %A returns the correct index number and %B contains the complete text of the row with @TAB() between each field. Which is what I want, but ideally this should happen on whichever column is double-clicked surely?
Or do I mis-understand?
Thanks in advance _________________ Andrew GRAY
If you don't know I am looking for work, I won't get the job.
andrewrcgray.com |
|
Back to top |
|
|
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Fri Jan 10, 2003 6:31 pm Post subject: |
|
|
I'm afraid this is a characteristic of the listview (collist) control.
The @EXTLIST(LIST,INDEX) and @EXTLIST(LIST,ITEM) functions return the current information
index, not the information related to the event that occurred last...
If someone clicks on a column other than the first column, this will cause the item to be
unselected so that both functions will state that no item was selected too. |
|
Back to top |
|
|
arcray Valued Contributor
Joined: 13 Jul 2001 Posts: 242 Location: Aude, France
|
Posted: Sat Jan 11, 2003 10:16 am Post subject: |
|
|
That's OK. As long as I know. It is fairly simple to put an INFO up when %A = -1 telling the user to click on the first column... _________________ Andrew GRAY
If you don't know I am looking for work, I won't get the job.
andrewrcgray.com |
|
Back to top |
|
|
|