I'm studying and trying to learn alone. Could someone help me with a question?
In a FireMonkey Form Mobile I have a dB and a ListBox. To start the component I use LiveBinding Designer and the table has the following fields:
id
name
tel
I 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:
- Code: Select all
function GetSelectedValue(AObject: TObject): TValue;
var
LEditor: IBindListEditorCommon;
begin
LEditor := GetBindEditor(AObject, IBindListEditorCommon) as IBindListEditorCommon;
Result := LEditor.SelectedValue
end;