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

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

leeand00 gravatar image

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

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by qubit
close date 2013-03-06 08:51:48.890703


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

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