| Author |
Message |
elise_moss
Guest
|
Posted:
Fri Mar 18, 2005 11:43 pm Post subject:
Re: list box item |
|
|
My question was extremely specific, Frank, and written in such a way so that people could provide a quick response. It was obvious from the majority of the respondents that they did not read the question. The majority of respondents assumed the question was how to populate a list box from a text file and that was NOT the question.
Maybe I *was* SNIPPY, but it's sort of like asking for directions to City Hall and being provided directions to the City Library.
|
|
| Back to top |
|
 |
Paul Richardson
Guest
|
Posted:
Sat Mar 19, 2005 1:18 am Post subject:
Re: list box item |
|
|
| Quote: | I want to be able to correspond some data from two text files...one txt
file populates the list box and the second txt file lists a corresponding
file that would be opened based on the line selected in the list box.
|
What part of this is specific in saying you know how to do it...Nasty!
This seem like the question to me since the other question is like falling
off a log,
or typing a period and looking for a second!!! You'll never get to City Hall
this
way...lost much?
"elise_moss" <nospam@address.withheld> wrote in message
news:4816980.1111171454237.JavaMail.jive@jiveforum2.autodesk.com...
| Quote: | My question was extremely specific, Frank, and written in such a way so
that people could provide a quick response. It was obvious from the
majority of the respondents that they did not read the question. The
majority of respondents assumed the question was how to populate a list
box from a text file and that was NOT the question.
Maybe I *was* SNIPPY, but it's sort of like asking for directions to City
Hall and being provided directions to the City Library. |
|
|
| Back to top |
|
 |
Frank Oquendo
Guest
|
Posted:
Sat Mar 19, 2005 2:47 am Post subject:
Re: list box item |
|
|
elise_moss wrote:
| Quote: | Maybe I *was* SNIPPY
|
Maybe you still are being snippy. It's not wise to piddle where you eat.
|
|
| Back to top |
|
 |
Frank Oquendo
Guest
|
Posted:
Sat Mar 19, 2005 2:53 am Post subject:
Re: list box item |
|
|
elise_moss wrote:
| Quote: | My question was extremely specific, Frank, and written in such a way so that people could provide a quick response. It was obvious from the majority of the respondents that they did not read the question. The majority of respondents assumed the question was how to populate a list box from a text file and that was NOT the question.
|
BTW, I did indeed answer your question. What I did not do was provide
complete instructions on how to implement the solution. If you require
an additional level of detail, by all means: ask.
I take exception with your characterization of my response as useless,
pointless or just plain wrong simply because it did not come in
bite-size chunks of code. |
|
| Back to top |
|
 |
Jorge Jimenez
Guest
|
Posted:
Sat Mar 19, 2005 11:40 pm Post subject:
Re: list box item |
|
|
itemno = List.ListIndex
itemno should be a long or integer NOT an object
--
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica
"elise_moss" <nospam@address.withheld> wrote in message
news:5379419.1111002543729.JavaMail.jive@jiveforum2.autodesk.com...
| Quote: | I am working in VB6.
I want to get the itemno for the list text selected from a list box. I
want to be able to correspond some data from two text files...one txt file
populates the list box and the second txt file lists a corresponding file
that would be opened based on the line selected in the list box.
I know it is something like Set itemno = List.ListItem(?)
Thanks,
Elise Moss
www.mossdesigns.com |
|
|
| Back to top |
|
 |
Jorge Jimenez
Guest
|
Posted:
Sat Mar 19, 2005 11:42 pm Post subject:
Re: list box item |
|
|
Oops. Sorry, I see you got your answer already.
--
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica
"Jorge Jimenez" <unknown@nospam.com> wrote in message
news:423c71ac$1_1@newsprd01...
| Quote: | itemno = List.ListIndex
itemno should be a long or integer NOT an object
--
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica
"elise_moss" <nospam@address.withheld> wrote in message
news:5379419.1111002543729.JavaMail.jive@jiveforum2.autodesk.com...
I am working in VB6.
I want to get the itemno for the list text selected from a list box. I
want to be able to correspond some data from two text files...one txt
file populates the list box and the second txt file lists a corresponding
file that would be opened based on the line selected in the list box.
I know it is something like Set itemno = List.ListItem(?)
Thanks,
Elise Moss
www.mossdesigns.com
|
|
|
| Back to top |
|
 |
AKS
Guest
|
Posted:
Mon Mar 21, 2005 9:26 pm Post subject:
Re: list box item |
|
|
| I may be wrong, but I don't use Listindex because I think the index can be at a certain spot in the list but the item may not be selected, plus I don't know how to use it (if it works) for lists with multiselection. I use the rude and crude method of looping through each list item looking for the items that have Selected(i) = True. Exit the loop at that point if multiselect is not needed. In your case, depending how much text you need to associate and whether or not it is a static situation, you might consider building your list with two columns. Then you do not have to worry about managing two separate lists. You also don't have to display that second column if your user does not need to see it. |
|
| Back to top |
|
 |
|
|
|
|