Subject COMBOBOX
From Mustansir Ghor <mustan31@hotmail.com>
Date Sun, 14 Jan 2018 06:19:22 -0500
Newsgroups dbase.getting-started

Dear All

I wish if COMBOBOX had navigation associated with datasource. Even for array it would have been array index.

Nevertheless i refer to following below code

form.codeadd=""    // a variable create on the form
form.mqnew.active=true     // a query for below combbobox datasource
form.mqnew.rowset.indexname="name"    // datasource to have alphabetic listing
form.cbadd.datasource = form.mqnew.rowset.fields["name"]            // field for datasource
form.cbadd.setfocus()    // bring focus to combobox

I have following LostFocus combobox method that puts value to form.codeadd

  function CBADD_onLostFocus()
        if form.mqnew.rowset.findkey(this.value)
          form.codeadd = form.mqnew.rowset.fields["code"].value+"01"
        endif
  return

After lostfocust method, when control returns to where it started and when i access
?form.codeadd, it shown blank value

Can anybody suggest where I have gone wrong.