James Bott wrote:You should consider moving to CDXs--they all exist in one file and you can globally set them to open automatically whenever you open the DBF.
Better yet, you should consider moving to database objects--no more using aliases or work areas. You can eliminate lots of code this way. This provides easier to read code with less bugs, and it is easier to maintain.
oCustomer:= TCustomer():New( cCustNo )
msgInfo( oCustomer:balance() )
How easy is that?
Mr James.
Your advise is good. But every programmer here has already running applications with large code. It is not so easy to convert the entire project to oops or even converting from ntx to cdx.
They need simple solution to work without undertaking a major change.
Using OrdScope() is much simpler for dbfntx also.
I am considering why not we translate the SELECT .... clause in xbrowse to apply OrdScope() inside the xbrowse.prg which makes it easier for migration from wbrowse to xbrowse. May be we provide this in the next release.