Right, I am appealing for help with helping me understand why the code I use for combobox will not work with listbox...
Example of what I mean is:
Button 1:Code:-- Adds 7 items to the combo box as shown below:- ComboBox.AddItem("ComboBox1", "Day 1", "Monday"); ComboBox.AddItem("ComboBox1", "Day 2", "Tuesday"); ComboBox.AddItem("ComboBox1", "Day 3", "Wednesday"); ComboBox.AddItem("ComboBox1", "Day 4", "Thursday"); ComboBox.AddItem("ComboBox1", "Day 5", "Friday"); ComboBox.AddItem("ComboBox1", "Day 6", "Saturday"); ComboBox.AddItem("ComboBox1", "Day 7", "Sunday");BUT....Code:cb_Selected = ComboBox.GetSelected("ComboBox1"); cb_ItemText = ComboBox.GetItemText("ComboBox1", cb_Selected); cb_ItemData = ComboBox.GetItemData("ComboBox1", cb_Selected); Dialog.Message(cb_ItemText, cb_ItemData, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Button 2:Code:-- Adds 7 items to the list box as shown below:- ListBox.AddItem("ListBox1", "Day 1", "Monday"); ListBox.AddItem("ListBox1", "Day 2", "Tuesday"); ListBox.AddItem("ListBox1", "Day 3", "Wednesday"); ListBox.AddItem("ListBox1", "Day 4", "Thursday"); ListBox.AddItem("ListBox1", "Day 5", "Friday"); ListBox.AddItem("ListBox1", "Day 6", "Saturday"); ListBox.AddItem("ListBox1", "Day 7", "Sunday");DOES NOT work...Code:lb_Selected = ListBox.GetSelected("ListBox1"); lb_ItemText = ListBox.GetItemText("ListBox1", lb_Selected); lb_ItemData = ListBox.GetItemData("ListBox1", lb_Selected); Dialog.Message(lb_ItemText, lb_ItemData, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Also, attached is the sample project I am talking about.
So WHY wont the listbox work just like the combobox does with the same code? PLEASE help me to understand this!!

Reply With Quote
If you find out an action returns a table, start reading the helpfile about tables, and you'll see what you can do 