Hi Antonio,
For the combobox, this seems to work:
'document.getElementById( "combobox" ).value.trim() + ":" + '+ ;
For the Browse, I have tried Otto's example however it returns the item number in the order of the list (array).
If I build the array using a filtered list from my DBF the number returned does not line up with the record number in the DBF.
A very basic example:
If my DBF has 3 items
Item1
Item2
Item3
And I do something like:
- Code: Select all Expand view
IF LEN( aData ) = 0
USE \mydata\TestDB SHARED NEW
aadd( aData, {"A"} )
go top
do while ! eof()
aadd(aData,{TestDB->A } )
skip 2
enddo
CLOSE TestDB
ENDIF
My list in the browse will have:
Item1 (Record #1)
Item3 (Record #3)
If I double click on ITEM3 it will send ".....edittest:
3:1".
I understand that the first number returned will be the line in the list and the second number is the cell location.
So, subtracting 1 from the first number (done to compensate for the header added to the array) will give me "2" which will display the info from the wrong record.