Sajith,
Why don't you try the following code assuming that the record pointer in the recordset moves simultaneously when you scroll thru the rows/records in xBrowse. I am not sure but you can give a try and please see that whether the GET is displaying the desired value. Also please let us know your feedback.
- Code: Select all Expand view
// Call the function to Edit the xBrowse Data on a Dialog when the user double click on xBrowse
oBrw:bLClicked := { | nRow, nCol | EditData(oBrw) }
//----------------------------------//
Function EditData(oBrw)
//----------------------------------//
Local oDlg,cCode,cName,oGetCode,oGetName
cCode:=oRecordSet:Filelds("Code"):Value
cName:=oRecordSet:Filelds("Name"):Value
DEFINE DIALOG oDlg TITLE "Test"
@1,1 GET oGetCode VAR cCode of oDlg
@2,1 GET oGetName VAR cName of oDlg
ACTIVATE DIALOG oDlg
oBrw:Refresh()
Return NIL
Regards
Anser