Ask Your Question
1

Retrieving primary key id from a Combo Box? [closed]

asked 2012-05-29 16:51:38 +0200

leeand00 gravatar image leeand00
11 3

updated 2012-05-29 16:52:05 +0200

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?

delete reopen flag offensive retag edit

Comments

Why do you use a Combo box? Perhaps you want use ListBox?

JohnSUN ( 2012-06-06 17:37:03 +0200 )edit

The question has been closed for the following reason "question is not relevant or outdated" by qubit
close date 2013-03-06 08:51:48.890703

Donate

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!

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2012-05-29 16:51:38 +0200

Seen: 189 times

Last updated: May 29 '12