Hello, I need to know what is the return type from a list box.
From the scripting Index:
Names Default To Here( 1 );
New Window( "Example",
fontobj = lb = List Box(
{"First Item", "Second Item", "Third Item"},
width( 200 ),
max selected( 2 ),
nlines( 6 )
)
);
lb << Set Selected( 2 );
Print( lb << Get Selected );
Gets returned:
{"Second Item"}
What object type is this return? List, array? how do I access items by index? How am I supposed to handle the contents within? If more than two items are selected using Ctrl, are several items returned in this list or array?
For example let's say I need to concatenate an existing string with the selected value from this list box.
What is the difference between << Get Selected and << Get Selected Indices? In most of the code snippets I'm seeing it is common to use Get Selected Indices and I don't get why would you retrieve just the indices if your ultimate goal is to retrieve the contents.
In addition, when using the Application Builder, how can I see my debugging prints? Will they go into the general log window?
Thank you