hi,
you Sample work
i saw these Line
Code: Select all | Expand
COLUMNS "DELETED() AS DELETED","CODE","NAME" ;
:RecSelShowRecNo()
:Deleted:SetCheck(,.t.)
Sample need COLUMNS "DELETED() AS DELETED" ... but i don´t know Column as i don´t have "fix" DBF
i do use
hm ... can i build a String of COLUMNS before create XBROWSE, will that work
--
i have add Msginfo(() before ACTIVATE
Code: Select all | Expand
Msginfo(" DETELED IS " + If( Set(_SET_DELETED), "ON", "OFF" ) )
ACTIVATE WINDOW oWnd ;
just to be sure that DELETED if OFF
but still i do not seen any DELETED Record in XBROWSE ...
Code: Select all | Expand
@ nBhight, 2 XBROWSE oBrwDBF SIZE nWidth - 20, nHeight - 90 PIXEL OF oWnd ;
DATASOURCE cAlias ; // ALIAS cAlias
COLUMNS ColsNumber( DBSTRUCT() ) ;
FONT oFontDefault ;
COLOR BFcolor, BGcolor ;
CELL LINES NOBORDER FASTEDIT AUTOCOLS AUTOSORT
oBrwDBF:nStretchCol := STRETCHCOL_WIDEST
oBrwDBF:lRecordSelector := .F.
oBrwDBF:bChange := { || SayStatusDBF( oBrwDBF, oGet, @nVar ) }
oBrwDBF:bOnSort := { || oBrwDBF:Refresh() }
// oBrwDBF:bClrEdit := { || { BFcolor, BGcolor } }
oBrwDBF:bClrStd := { || { BFcolor, BGcolor } }
// oBrwDBF:bClrSel := { || { BFcolor, BGcolor } }
oBrwDBF:bClrHeader := { || { BFcolor, BGcolor } }
// oBrwDBF:bClrFooter := { || { BFcolor, BGcolor } }
// oBrwDBF:bClrSelFocus := { || { CLR_WHITE, GetSysColor( COLOR_MENUHILIGHT ) } }
oBrwDBF:bClrGrad := bGradient
// edit CELL
// oBrwDBF:nEditTypes := EDIT_GET
// override F2 CELL edit
// oBrwDBF:lF2KeyToEdit := .T.
* oBrwDBF:RecSelShowRecNo()
* oBrwDBF:Deleted:SetCheck(,.t.) // COLUMNS "DELETED() AS DELETED",
oBrwDBF:CreateFromCode()
what i´m doing wrong that DELETED Record are not show in XBROWSE
will try to make Sample