alias dinamicos en dialogos nomodales

User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: alias dinamicos en dialogos nomodales

Post by nageswaragunupudi »

We recommend creating of XBrowse using command syntax similar to this:

Code: Select all

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

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
Post Reply