Hallo Kornelia,

Hallo Jörg,
[...]
Also bitte Code posten, vor allem auch weil denjenigen die Dir
mutmaßlich helfen können der Code (auch unkommentiert) mehr sagt als
jede noch so umfangreiche verbale Beschreibung des Codes.

ich habe gestern noch die Fehlermeldung „Eigenschaft oder Methode nicht gefunden“ beseitigt. Nun will ich also im Textdokument vorhandene Textmarken in einer Listbox anzeigen und durch Anklicken auswählen lassen. Bis jetzt ist die Listbox noch leer. :-(
---code---
DialogLibraries.LoadLibrary ("Standard")
oDialog = CreateUnoDialog (DialogLibraries.Standard.dTextmarke)
oListBox = oDialog.getControl ("ListBox1")
For i = 0 to ubound (oListBox.model.StringItemList ())
     'oBookmark = oDoc.Bookmarks.getByIndex (i)
     sBookmarkName = oDoc.Bookmarks.getbyName ()
     oListBox.addItem (sBookmarkName, 1) 'Hinzufügen von Listen-Strings
     MsgBox oListBox.model.StringItemList (i)
  Next i
oListBox.SelectItemPos (0, true)
oDialog.Execute
oSelect = oListBox.SelectedItem
MsgBox oSelect
Woher kennst du die Anzahl der Listboxeinträge und die Namen der Bookmarks?

Für mich würde es so mehr Sinn machen:

For i = 0 to oDoc.Bookmarks.count-1
sBookmarkName = oDoc.Bookmarks.getbyIndex()
oListBox.addItem (sbookmarkname.name, 1)
Next i

mfg
Michael



---code---

Danke und Gruß
Kornelia

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
FAQ zu Starbasic -> http://www.starbasicfaq.de
Volltextsuche in SO/OOo -> http://www.dannenhoefer.de/down

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Antwort per Email an