Talk:Lazarus Tdbf Tutorial: Difference between revisions
(Merged comment from Matthijs into article) |
Sekelsenmat (talk | contribs) No edit summary |
||
Line 33: | Line 33: | ||
Can anyone help me? | Can anyone help me? | ||
: The [http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewforum&f=16 Lazarus database forum] is probably a better place to ask these questions. Of course fixes to this tutorial are welcome. [[User:Vincent|Vincent]] 03:10, 20 Apr 2005 (PDT) | : The [http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewforum&f=16 Lazarus database forum] is probably a better place to ask these questions. Of course fixes to this tutorial are welcome. [[User:Vincent|Vincent]] 03:10, 20 Apr 2005 (PDT) | ||
You probably forgot to put "db" or something else in your uses clause.--[[User:Sekelsenmat|Sekelsenmat]] 10:47, 17 Jul 2005 (PDT) |
Revision as of 19:47, 17 July 2005
Reenen: Hi there... My previous wiki experience was a more 'loose' forum like experience, so please forgive if I break any rules.
I just downloaded Lazarus yesterday (18 April 2005), and I am trying to teach myself a bit more of it.
So here I am trying to do this tutorial. At first I didn't have the tdbf component on my component bar. But I managed to find it on my installation and get it compiled and installed. (You might want to add how to do this into the tutorial, but as it is a tdbf tut, and not lazarus, it's your call)
Then I started to create my database... (I also downloaded the demo from tdbf's website, but this didn't work, but I assume it's a Delphi demo.
I read in the tutorial that we cannot create a table in a database desktop like thing, so we have to code.
This is where I ran into trouble.
procedure TMainForm.btnCreateDatabaseClick(Sender: TObject);
begin
dbCardData.TableLevel := 7;
dbCardData.TableName := 'Cards';
with dbCardData.FieldDefs do begin
Add('CardName',ftString,256,True);
Add('Edition',ftString,128,True);
Add('CC',ftString,32,True);
My error was
mainUnit.pas(56,24) Error: Identifier not found "ftString"
Can anyone help me?
- The Lazarus database forum is probably a better place to ask these questions. Of course fixes to this tutorial are welcome. Vincent 03:10, 20 Apr 2005 (PDT)
You probably forgot to put "db" or something else in your uses clause.--Sekelsenmat 10:47, 17 Jul 2005 (PDT)