Topic: Lazarus and SQLite and WinCE

Hello, I have installed the lib on Lazarus and I wrote this code:

unit Unit1; 

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, Sqlite3ds, db;

type

  { TForm1 }

  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
  private
    { private declarations }
  public
    { public declarations }
  end; 

var
  Form1: TForm1; 
  DataBase: TSqLite3DataSet;

implementation

{ TForm1 }

procedure TForm1.FormCreate(Sender: TObject);
begin
 DataBase:= TSqlite3Dataset.Create(nil);
 with DataBase do
 begin
  FileName :='DataBase.db';
  TableName :='NewTable';
  if not FileExists(FileName) then
   begin
    with FieldDefs do
     begin
      Clear;
      Add('Integer',ftInteger,0,False);
      Add('String',ftString,0,False);
      Add('Bool',ftBoolean,0,False);
      Add('Float',ftFloat,0,False);
      Add('Word',ftWord,0,False);
      Add('DateTime',ftDateTime,0,False);
      Add('Date',ftDate,0,False);
      Add('Time',ftTime,0,False);
     end;
    CreateTable;
   end;
 end;
end;

initialization
  {$I unit1.lrs}

end.

This code compiles correctly, but when I execute it in Windows CE it generates the following error:

http://i20.tinypic.com/107400x.gif

What I need?

Re: Lazarus and SQLite and WinCE

Hello,

The Sqlite3ds unit and the TSqLite3DataSet you are using have been written by Luiz Americo Pereira Camara (pascalive at bol.com.br) and are not part of the SqlitePass Library.

You should post your message on the lazarus DB forums. It seems this unit is widely used and you should get an answer very shortly.

Regards.

Luc

Re: Lazarus and SQLite and WinCE

Ok. Thank you.

Regards.