- Code: Select all Expand view RUN
#include "Fivewin.ch"
#include "Tcbrowse.ch"
FUNCTION MAIN()
LOCAL oDlg, oBrw
LOCAL i
USE TEST
DEFINE DIALOG oDlg;
SIZE 400, 400
@ 0, 0 BROWSE oBrw
ADD COLUMN TO oBrw;
DATA "Frozen";
HEADER "FROZEN"
oBrw:bLogicLen = { || LastRec() }
oBrw:lCellStyle = .T.
oBrw:nFreeze = 1
FOR i = 1 TO 20
ADD COLUMN TO oBrw;
DATA "Data";
HEADER "DATA" + LTRIM( STR( i ) )
NEXT
ADD COLUMN TO oBrw
ACTIVATE DIALOG oDlg;
ON INIT oDlg:SetControl( oBrw );
CENTER
CLOSE
RETURN NIL
EMG