G
Guest
Hello,
I don't know what it is called, but we as users often see this graphical
interface
in which 2 columns are presented...
The left column list the items (usually fields) available for user to select.
The right column serves as a container that holds items selected by the user.
Controls (>, >>, <, <<) are usually provided to enable user to move items
between the two columns.
Now I suppose reader will get the picture by now what I am talking about.
The question is: how may I implement an object like that?
Is the code for this object available as a module from somewhere that I may
use?
---
Moving along, I tried to implement this idea using 2 list boxes (for the
left & right columns).
And I ran into a weird problem - of not being able to copy value from the
left list into the right list.
Here is the main line of my code:
.....
ctl2.ItemData(0) = ctl1.Column(0, ctl1.ItemsSelected(0))
.....
The trouble with the above, as I read from the help file, is that the
ItemData property of a List Box is a read only property. (And yet I was
trying to assign or write to it.)
Is my interpretation of "help" correct?
If so, isn't it a little weird that one cannot change the value of a list
box item using code?
I would apprecieate any comments on this.
Thanks.
David
I don't know what it is called, but we as users often see this graphical
interface
in which 2 columns are presented...
The left column list the items (usually fields) available for user to select.
The right column serves as a container that holds items selected by the user.
Controls (>, >>, <, <<) are usually provided to enable user to move items
between the two columns.
Now I suppose reader will get the picture by now what I am talking about.
The question is: how may I implement an object like that?
Is the code for this object available as a module from somewhere that I may
use?
---
Moving along, I tried to implement this idea using 2 list boxes (for the
left & right columns).
And I ran into a weird problem - of not being able to copy value from the
left list into the right list.
Here is the main line of my code:
.....
ctl2.ItemData(0) = ctl1.Column(0, ctl1.ItemsSelected(0))
.....
The trouble with the above, as I read from the help file, is that the
ItemData property of a List Box is a read only property. (And yet I was
trying to assign or write to it.)
Is my interpretation of "help" correct?
If so, isn't it a little weird that one cannot change the value of a list
box item using code?
I would apprecieate any comments on this.
Thanks.
David