|
Post by milfredo on Jul 13, 2020 18:44:57 GMT -5
Here is a snippet of code. What I don't understand is that when I double click on the list box, the index number is always zero, while the factorselected$ is always the name I clicked on. So very confused as to why. I need the index to macth up with the spot in the array the same as does factorselected$.
[singlefactorslistbox]
print #objectbuild.listbox4, "selection? index"
print #objectbuild.listbox4, "selection? factorselected$"
Thanks Milfredo
|
|
|
Post by Chris Iverson on Jul 13, 2020 19:03:17 GMT -5
You're using the wrong command. "selection?" gets you a STRING that contains the value selected. "selectionindex?" gets you an index value of the position selected.
Try
print #objectbuild.listbox4, "selectionindex? index"
|
|
|
Post by milfredo on Jul 13, 2020 19:40:36 GMT -5
Thanks so much. What a relief.
|
|