PDA

View Full Version : Read a ComboBox in another object


DericLanza
03-24-2008, 04:34 PM
Hi, I need to extract a ComboBox selection in a Text Field, it is posible?, How can I do this?

TimeSurfer
03-24-2008, 04:54 PM
INDEX = ComboBox.GetSelected("ComboBox1");
ITEM = ComboBox.GetItemText("ComboBox1", INDEX);
DATA = ComboBox.GetItemData("ComboBox1", INDEX);

the ITEM var will contain the text of the selected item, as to whereas the DATA var contains the data for the selected item.

EXAMPLE SCENARIO

lets say we had a combobox with only 1 item in it, an AMS link. In the combobox lets say you see the text AMS. [THE ABOVE ITEM VAR WOULD RETURN THIS TEXT] Now lets say that the item AMS had a value of http://www.indigorose.com/ [THE ABOVE DATA VAR WOULD RETURN THE VALUE OF ITEM]

Hope my explaination helped

DericLanza
03-24-2008, 08:22 PM
My problem is that I'm learning by my self, and I don't know too many things. Thank you so much. I'll let you know.