Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

Welcome, Guest
Guest Settings

Thread: Retrieve the selected value from a listbox

This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Permlink Replies: 0
Frederico Carva...

Posts: 1
Registered: 6/16/06
Retrieve the selected value from a listbox  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 29, 2016 9:38 AM
Hi guys,
Could someone help me with a question?

In a FireMonkey Form Mobile I have a ListBox. To start the component I use LiveBinding Designer and the table has the following fields:

I usually use the event OnItemClick and Item.Text, but, How I can find the "id"?

I saw one example for delphi, but how can i do the same with c++ builder?

The delphi example that i found is:
function GetSelectedValue(AObject: TObject): TValue;
LEditor: IBindListEditorCommon;
LEditor := GetBindEditor(AObject, IBindListEditorCommon) as IBindListEditorCommon;
Result := LEditor.SelectedValue
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02