Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I save the index of a listbox as a file ?

file index listbox
0
Posted

How do I save the index of a listbox as a file ?

0

I’m not clear what index you are talking about. Lets review all possibilities: 1)Index property of listbox controls array: Open “c:\temp.txt” For Output As 1 Print #1, Listbox1(n).Index Close #1 2)ListIndex property of listbox (index of currently selected item): Open “c:\temp.txt” For Output As 1 Print #1, Listbox1.ListIndex Close #1 3)Contents of the listbox (all the elements in listbox): Open “c:\temp.txt” For Output As 1 For i=0 To Listbox1.ListCount-1 Print #1, Listbox1.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123