You've already forked lazarus-ccr
TvPlanIt: Activate dayview drag-and-drop in the examples/datastores demos.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8175 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -103,7 +103,7 @@ end;
|
||||
procedure TForm1.CreateDB(AFileName: String);
|
||||
begin
|
||||
SQLite3Connection1.Close; // Ensure the connection is closed when we start
|
||||
|
||||
|
||||
// Create the database and the tables
|
||||
try
|
||||
SQLite3Connection1.DatabaseName := AFileName;
|
||||
@ -285,7 +285,13 @@ begin
|
||||
|
||||
// Transaction
|
||||
SQLTransaction1.DataBase := Sqlite3Connection1;
|
||||
SQLTransaction1.Action := caCommitRetaining;
|
||||
|
||||
QryResources.Options := QryResources.Options + [sqoAutoApplyUpdates];
|
||||
QryEvents.Options := QryEvents.Options + [sqoAutoApplyUpdates];
|
||||
QryTasks.Options := QryTasks.Options + [sqoAutoApplyUpdates];
|
||||
QryContacts.Options := QryContacts.Options + [sqoAutoApplyUpdates];
|
||||
|
||||
if not FileExists(AppendPathDelim(Application.Location) + DB_NAME) then
|
||||
CreateDB(AppendPathDelim(Application.Location) + DB_NAME);
|
||||
|
||||
|
Reference in New Issue
Block a user