Recent

Author Topic: "ft" variables in SQLite cant be found  (Read 3952 times)

ProbablyX

  • Newbie
  • Posts: 1
"ft" variables in SQLite cant be found
« on: August 07, 2008, 01:49:35 am »
Hi!

Im trying to create a table from code with SQLite from the guide on the components homepage.
Everything compiles fine except that I get these errors:
frmmain.pas(89,37) Error: Identifier not found "ftAutoInc"
frmmain.pas(90,37) Error: Identifier not found "ftString"
frmmain.pas(91,37) Error: Identifier not found "ftString"

This is the code for them:
Code: [Select]

if not TableExists then
    begin
      FieldDefs.Clear;
      FieldDefs.Add('Id',  ftAutoInc);
      FieldDefs.Add('Date', ftString);
      FieldDefs.Add('Text', ftString);
      CreateTable;
    end;  


The FieldDefs.Add works, and can even be code completed. It's just the ft stuff.

Maybe I lack some include-file or so?

Thanks :)

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
RE: "ft" variables in SQLite cant be found
« Reply #1 on: August 10, 2008, 02:45:56 am »
Add db to your uses clause

 

TinyPortal © 2005-2018