Thread-safe FloatToSQLStr; StepAndReset -> func

This commit is contained in:
2013-08-30 22:03:19 +07:00
parent b22586e4ef
commit 4d1f752fd8
6 changed files with 35 additions and 27 deletions

View File

@@ -42,7 +42,8 @@ begin
// Delete database if it already exists
DeleteFile('artists.db');
// Create datatbase and fill it with example data
// Create database and fill it with example data
Screen.Cursor := crHourGlass;
DB := TSQLite3Database.Create;
try
DB.Open('artists.db');
@@ -170,8 +171,11 @@ begin
finally
Stmt.Free;
end;
ShowMessage('Database created.');
finally
DB.Free;
Screen.Cursor := crDefault;
end;
end;