- Code: Select all Expand view
- REDEFINE XBROWSE oBrw OF oDlg ID 101 ALIAS cAlias ;
COLUMNS "Clave", "NOMBREEXT" ;
HEADERS "Clave", "Nombre" ;
COLSIZES 45, 300 ;
CELL LINES
oBrw:aCols[ 1 ]:lAllowSizing := .f.
oBrw:aCols[ 2 ]:lAllowSizing := .f.
ACTIVATE DIALOG oDlg NOMODAL ;
VALID ( ( cAlias )->( DBCLOSEAREA() ), .t. )
We advise not to use the syntax
- Code: Select all Expand view
oBrw := TXBrowse():New( oDlg )
Using command line syntax as advised by us is not only simple and short but most importantly that is the only way to use the full power of xbrowse.
If you still want to use your syntax, it is upto you, but you will not get many benefits that xbrowse provides.