FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour alias dinamicos en dialogos nomodales
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: alias dinamicos en dialogos nomodales
Posted: Fri Mar 10, 2017 02:30 AM
We recommend creating of XBrowse using command syntax similar to this:
Code (fw): Select all Collapse
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 (fw): Select all Collapse
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.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion