by FranciscoA » Mon May 13, 2013 11:47 pm
I see no problem in your code. Maybe you want to display the code of the function TraPre ()?
Meanwhile, I leave these parts of code I use. I hope you serve as an example.
oLbx := TXBrowse():New( oDlg )
oLbx:SetMySql(oCatalogo,.f.)
oCol = oLbx:AddCol()
oCol:bEditValue = { || oCatalogo:Codicont }
oCol:cHeader = "Codigo Contable"
oCol:nWidth = 164
oCol = oLbx:AddCol()
oCol:bEditValue = { || oCatalogo:Nombre }
oCol:nDataStrAlign := 3
oCol:cHeader = "Nombre de la Cuenta"
oCol:nWidth = 350
oLbx:CreateFromResource(181)
oLbx:bLDblClick:={|| if(lGrabacion, (cCodic:=oCatalogo:Codicont, if(oCatalogo:nv="S",oDlg:End(),(cCodic:="",MsgStop("Codigo incompleto","Alto")) )),) }
ACTIVATE DIALOG oDlg CENTERED
oCatalogo:End()
Francisco J. Alegría P.
Chinandega, Nicaragua.
Fwxh-MySql-TMySql