First time here? Check out the FAQ!
In StarBasic / LibreBasic, how do I retrieve the key id of the selected item in a combo box?
Doc = ThisComponent
TheForm = Doc.DrawPage.Forms.GetByName("Form")
CbBoxFeature = TheForm.getByName("CbBoxFeature")
CbBoxDESPName = TheForm.getByName("CbBoxDESPName")
cbUpdateToState = TheForm.getByName("cbUpdateToState")
featureName = CbBoxFeature.text
despName = CbBoxDESPName.text
setToState = cbUpdateToState.text ' How do I retrieve the id instead of the name?
Or is it just a matter of having to use a query to find out what the id is, like it used to be in OpenOffice.org?
LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!
Asked: 2012-05-29 16:51:38 +0200
Seen: 189 times
Last updated: May 29 '12
Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
Why do you use a Combo box? Perhaps you want use ListBox?
JohnSUN ( 2012-06-06 17:37:03 +0200 )edit