GetItemPath (C++)
Description
This example uses a directory list box, a button, and a label on a form. When you select a directory in the directory list box and click the button, the selected directory opens. The path of the second directory displayed in the list box appears as the caption of the label.
Code
void __fastcall TForm1::Button1Click(TObject *Sender)
{
DirectoryListBox1->OpenCurrent();
Label1->Caption = DirectoryListBox1->GetItemPath(1);
}