Liebe Liste,

ich versuche gerade auf Listboxen in einem Tabellenkontrollfeld eines 
Formulars zuzugreifen. Allerdings wirft mich das Makro jedes Mal raus, wenn 
ich SelectItem bzw. SelectedItem abfragen will - Objektvariable nicht belegt.

Mein Zugriffsversuch:

        odoc=thisComponent
        odrawpage=odoc.drawpage
        oform=odrawpage.forms.getByName(Hauptform)
        ouform=oform.getbyName(Subform)
        oGrid=ouform.getbyName(Grid)
        DocCrl = ThisComponent.getCurrentController()
        oControl=oGrid.getByName(LB1)
        oControl_Z=oGrid.getByName(LB2)
        oListBox = DocCrl.GetControl(oControl)
        mySelect = oListBox.SelectedItem

bei mySelect bleibt das Ganze jedes Mal stehen. Weiß jemand, ob das 
Unterfangen überhaupt mit einem Tabellenkontrollfeld möglich ist?

Gruß

Robert

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Antwort per Email an