Finding XBrowse current record
Posted: Thu Jul 01, 2021 8:12 pm
Nages, or anyone:
I am trying to find the current record in a XBrowse. First let me state that I am using FWH 1805 and xHarbour, so things may be different now.
Here is the problem:
I would assume that when you left-double-click on a record in an xBrowse it would become the "current" record. The clicked record does become the highlighted record, but the current database record is still be the first record in the browse, as the CUSTNO and LAST name of the first record are always shown when you click on any record in the browse.
I should also mention that if you move the highlight to another record (and use a button to get the current record description) it also shows the first record as the current record.
If this is a bug, has it been corrected?
If it is not a bug, then how can I get the CUSTNO of the currently selected record?
James
I am trying to find the current record in a XBrowse. First let me state that I am using FWH 1805 and xHarbour, so things may be different now.
Here is the problem:
Code: Select all | Expand
// This always shows data from the first record in the indexed database, NOT the currently highlighted record in the xbrowse
oBrwCust:bLDblClick:= {| oCustomers | msgInfo(oCustomers:custno), msgInfo(oCustomers:last) }
I would assume that when you left-double-click on a record in an xBrowse it would become the "current" record. The clicked record does become the highlighted record, but the current database record is still be the first record in the browse, as the CUSTNO and LAST name of the first record are always shown when you click on any record in the browse.
I should also mention that if you move the highlight to another record (and use a button to get the current record description) it also shows the first record as the current record.
If this is a bug, has it been corrected?
If it is not a bug, then how can I get the CUSTNO of the currently selected record?
James