Otto,
I also use Xbrowse dayly and most of my program is used from inside xbrowses....
You use autocode for generating xbrowses, but I'm looking (thinking) into a other way.
oBrowse:= MyBrowse("Customers")
and from this point in code I think to generate a function that will retrieve ALL possible data from a Xbrowse (setup/maintenance) function where all xbrowses are located.
This function would look somewhat like this :
Function MyBrowse(cBrowse)
local oBrw
use Xbrw // data needed to generate the xbrowse Customers
Seek the cBrowse
Start generating the browse
oBrw:=xbrowse(xBrw->dbf,xBrw->title,xBrw->lSort,..... ) // XBrowse( uData, cTitle, lAutoSort, bSetUp, aCols, bSelect, lExcel, lFastEdit, bValid, cSerial, lNoModal, lAutoFit )
//more setup if possible
if !empty(xBrw->Header)
oBrw:setgroupheader("xBrw->header",xbrw->headerfrom,xBrw->headerto)
endif
etc... etc...
It's just a starting idea, because I have to generate Xbrowse a lot and this way the code for them would almost be only 1 line.
I'm sure this technique is used be people at this forum, so I hope a working starting program will be posted ))
return oBrw