Code: Select all
oBrw:nEdtTypDefault := EDIT_GET
oBrw:bEditType := { | oCol | selecValor( oCol ) }
function selecValor( oCol )
local oBrw := oCol:oBrw
DO CASE
CASE oBrw:aRow[ 1 ] in { "REG4", "REG9", "REG11" }
oCol:nEditType := EDIT_LISTBOX
oCol:xOpcion := { "Uno", "Dos", "Tres" }
CASE oBrw:aRow[ 1 ] == "REG8"
oCol:nEditType := EDIT_LISTBOX
oCol:xOpcion := { "aaa", "bbb", "ccc" }
CASE oBrw:aRow[ 1 ] == "REG15"
oCol:nEditType := EDIT_BUTTON
oCol:xOpcion := { || MsgYesNo( "Select a value" ) }
otherwise
oCol:nEditType := ::nEdtTypDefault
oCol:xOpcion := nil
ENDCASE
return nil