Page 1 of 1

Devart 7.1 Sqlite value returns

Posted: Tue 04 Sep 2018 17:32
by jota
Hello

When I use the following instructions:

Code: Select all

TUniProvider(UniProviders.GetProvider('SQLite')).GetConnectionOptions[i].OptionName = 'ConnectMode' 
TUniProvider(UniProviders.GetProvider('SQLite')).GetConnectionOptions[i].OptionName = 'EncryptionAlgorithm' 
the value retrieved for 'connectmode' and 'encryptionalgorithm', is zero.
Should it be like this? or it must be 'cmDefault' and 'leDefault'

Thanks

Re: Devart 7.1 Sqlite value returns

Posted: Mon 10 Sep 2018 14:04
by MaximG
Please describe the task in more detail. You can set the required option value as follows:

Code: Select all

UniConnection.SpecificOptions.Values['EncryptionAlgorithm'] := 'leDefault';
You can obtain the value using the following code:

Code: Select all

var
OptionValue: String;
begin
...
OptionValue := UniConnection.SpecificOptions.Values['ConnectMode'];