LLScrollListItem* item = // get pointer to a LLScrollListItem std::string s = item->getColumn(0); // get text of the first column
LLSimpleScrollList* list = // get pointer to a LLSimpleScrollList LLScrollListItem* item = list->getItem(1); // get second item in the list std::string s = item->getColumn(2); // get text of the third columnThis code retrieves the text in the third column of the second item (index 1) in a LLSimpleScrollList object and assigns it to a string variable. Package library: Second Life Viewer SDK.