I've been using ADS ( Remote and Local ) for many years, but generally without a Data Dictionary.
First I set up the ADD and I have not problem accessing and indexing files.
However, if I encrypt a file, I get an error.
I use: oDB:createIndex( "erfcit", "city",,, .t., 10 )
Which is a call to:
METHOD createIndex( cTag, cKey, lUnique, lAscending, lMeter, nInterval, cMessage, cFor, cFor2 )
DEFAULT lUnique := .f., ;
lAscending := .f., ;
lMeter := .t., ;
nInterval := MAX( INT( ::reccount() / 10 ), 1 ), ;
cMessage := "Building index..." + cTag + STR( ::reccount( ), 12 ) + " records"
( ::cAlias )->( ORDCONDSET( cFor, cFor2,,,, nInterval, ( ::cAlias )->( RECNO() ),,,, lAscending ) )
( ::cAlias )->( ORDCREATE(, ( cTag ), cKey, { || &cKey }, ) )
RETURN nil
and the error I receive is:
Error description: Error ADSCDX/5089 The operation is not valid for the auto-open index.
I've tried some alternatives with the same result.
So if I want to use an ENCRYPTED file with ADS, using a data dictionary, how can I get the files to index ? The ONLY difference in this is if the file is encrypted. If not, the commands work perfectly. If it is, I get the error. Encryption is set using the ADS process, not called from within the program.
Tim
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit