Gracias anticipadas.
- Code: Select all Expand view RUN
cSource := "SELECT articulo.* FROM articulo"
if !Empty( nFam )
// cSource := cSource + " WHERE FAMILIA = 24 "
cSource := cSource + " ORDER BY articulo.descrip"
endif
dbselectar(0)
AdsConnect( oApli:cDbfPath , 2 )
AdsCreateSqlStatement( "temp", 2 )
if ! AdsExecuteSqlDirect( cSource )
( "temp" )->( DBCloseArea() )
pausa("error")
RETURN nil
endif
sele ( "temp" )
xbrowser temp
close( "temp")