Hi Lars, Rosoft Engineering wrote (31-3-2009 16:57)
I would like like to change the contens of one of the items in a CoboxBox.items. I know I can add items dynamicly but what about changing a string in the list of items. In ordinary Basic such as VB 2008 this is not a problem. I tried the followingdim int psoition = <a value between 0 and nbItems-1> oDlg.GetControl("myCoboBox").item(psoition) = "The New String" When the debugger comes to this line it says that there is no such function or value to access. I get no messages when I compile the code. The code i inside an ott template. Does any one have a solution for this?
I have not checked it, but what will work for sure: put the items from the combobox in an array, emty the combobox, replace one item in the array and fill the combobox again. Maybe there is a smarter way ... Therefore you can use Xray to look into the properties and methods of the objects.
Look at the api home page http://api.openoffice.org/ and you'll find a link to the wiki, where Xray can be found etc. HTH, Cor ps: a question like this can best be asked on dev at api.openoffice.org And when you subscribe first, you for sure will get all the answers. To do so, mail to [email protected] -- Cor Nouws - nl.OpenOffice.org marketing contact = "2009 - Develop OOo" = www.nieuwsteoffice.nl = --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
