The onSaveCol event is sending an TEditForGrid object, instead of TBrwColMod (as described in the documentation).
Código: Seleccionar todo
METHOD BrwSaveCol( oSender, oCol, xValue ) CLASS tfrmLbEdit
/*REDECLARE oCol as TBrwColMod
if oCol:nDataCol = 4
...
endif */
// Only one column is editable, it won't break my code.
mySave(xValue)
RETURN Nil
Código: Seleccionar todo
Error BASE/1004 Message not found: TEditForGrid:NDATACOL
Subsystem Call: BASE
System Code: 1004
Default Status: .F.
Description: Message not found
Operation: TEditForGrid:NDATACOL
Arguments: [ 1] = Type: O Val:
Involved File:
Dos Error Code: 0
Trace Through:
__ERRRT_SBASE (0)
TEDITFORGRID:ERROR (0)
(b)HBOBJECT (0)
TEDITFORGRID:MSGNOTFOUND (0)
TEDITFORGRID:NDATACOL (0)
TFRMLBEDIT:BRWSAVECOL (111)
TBROWSEMOD:ONSAVECOL (0)
TBROWSEMOD:SAVE (1783)
TBROWSEMOD:CANCELEDIT (1748)
TEDITFORGRID:WMKEYDOWN (717)
TFRMLBEDIT:SHOWMODAL (0)
FRMLBEDIT (64)
(b)PE_CONTEXTMENU (53)
TMENUITEM:ONCLICK (0)
TMENU:DOACTION (253)
TMENU:DOACTION (258)
TLABEL:SHOWPOPUPMENU (975)
TINSPECTOR:CONTROLCONTEXTMENU (968)
TLABEL:WMCONTEXTMENU (827)
RUNFORM (0)
TAPPLICATION:RUN (289)
MAIN (49)