"SelectedItemPos" einer Listbox im Tabellen-Kontrollfeld

Programmierung unter AOO/LO (StarBasic, Python, Java, ...)

Moderator: Moderatoren

hr.hartwig
***
Beiträge: 52
Registriert: Mi, 09.05.2007 23:25

"SelectedItemPos" einer Listbox im Tabellen-Kontrollfeld

Beitrag von hr.hartwig »

Hallo
Die Position eines selekktierten Eintrages einer Listbox bekomme ich mit

Code: Alles auswählen

    oForm = ThisComponent.DrawPage.Forms.getByName("MainForm")
    oListCtrl = ThisComponent.CurrentController.GetControl(oForm.getByName("lstLand")
    MsgBox oListCtrl.SelectedItemPos
Wie frage ich die Position einer Listbox ab, wenn sie sich in einem Tabellen-Kontrollfeld befindet?
Vielen Dank im voraus für Eure Hilfe.
Gruß,
Hotti