Recent

Author Topic: Tdbf Tutorial example on 64bit  (Read 6212 times)

OzeCode

  • New Member
  • *
  • Posts: 20
Tdbf Tutorial example on 64bit
« on: June 16, 2013, 11:36:02 pm »
I installed Lazarus 64 bit and tried the example from the Tdbf Tutorial on the Wiki and could not get it to accept the AutoInc or TabelLevel := 7.

An error message was shown suggesting the StrToInt was in error.

However, It will run ok if I do Not use the AutoInc and use TabelLevel 4.

Though after running the app I look back into the component Properties of the Dataset and found it had changed the TabelLevel to 3.

Is the Tutorial on the Wiki meant ONLY for the 32bit version?
Lazarus 1.0.10, 64 bit; Free Pascal 2.6.2; Windows OS; 
Macintosh Desktop AMD 64 bit - Win7 (64 bit) installed on C:\Bootcamp.

zeljko

  • Hero Member
  • *****
  • Posts: 1150
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Tdbf Tutorial example on 64bit
« Reply #1 on: June 17, 2013, 07:29:57 am »
fpc 2.6.2 ? TDbf is very buggy with 2.6.2, I've downloaded it from trunk (2.7.1) and replaced , now it works fine.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Tdbf Tutorial example on 64bit
« Reply #2 on: June 17, 2013, 08:32:20 am »
Zeljko is right. Tablelevel 7 doesn't work under 2.6.2 (but it should according to the specs).
Tablelevels 7 and 30 (Visual FoxPro) work much better under 2.7.1.

If you hit any problems with the 2.7.1 code, please post so I can have a look at the code...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

zeljko

  • Hero Member
  • *****
  • Posts: 1150
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Tdbf Tutorial example on 64bit
« Reply #3 on: June 17, 2013, 11:41:18 am »
Zeljko is right. Tablelevel 7 doesn't work under 2.6.2 (but it should according to the specs).
Tablelevels 7 and 30 (Visual FoxPro) work much better under 2.7.1.

If you hit any problems with the 2.7.1 code, please post so I can have a look at the code...

They work with 2.6.0, but not with 2.6.2. Patches from 2.7.1 are waiting to be merged into fixes (2.6.3)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Tdbf Tutorial example on 64bit
« Reply #4 on: June 17, 2013, 12:05:28 pm »
Tablelevel 30 doesn't exist in 2.6.0. And I'm fairly sure that even if you could set tablelevel 7 in <=2.6.0 there were huge bugs (I remember editing the wiki page warning about it).

Anyway, the most important thing is that the code has been improved ;)
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

OzeCode

  • New Member
  • *
  • Posts: 20
Re: Tdbf Tutorial example on 64bit
« Reply #5 on: June 17, 2013, 11:38:19 pm »
Thanks for the info.

trunk (2.7.1)

I am new at Lazarus. So do I find this and download this trunk (2.7.1)  and find the Tdbf and put it into my current Lazarus component folder and rebuid Lazarus?
Lazarus 1.0.10, 64 bit; Free Pascal 2.6.2; Windows OS; 
Macintosh Desktop AMD 64 bit - Win7 (64 bit) installed on C:\Bootcamp.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Tdbf Tutorial example on 64bit
« Reply #6 on: June 18, 2013, 07:31:39 am »
tdbf is included and enabled with a standard Lazarus install. See the data access tab in the component toolbar.

To get Laz with 2.7.x, you could try downloading a snapshot (if available) or use e.g. fpcup (see my signature and third party announcement on the forum)... or install manually using subversion.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

OzeCode

  • New Member
  • *
  • Posts: 20
Re: Tdbf Tutorial example on 64bit
« Reply #7 on: June 29, 2013, 01:04:19 am »
Lazarus 1.0.10, 64bit; Free Pascal 2.6.2; Windows OS; 
Macintosh Desktop AMD 64bit - Windows7 (64 bit) installed on C:\Bootcamp.

I set up Lazarus 32bit 1.0.10 on my old laptop and used the FPCUP program.
All worked out for the download and compile. I am happy now to do that on my 64 bit system.

Just not sure how to do what zeljko said 'I've downloaded it from trunk (2.7.1) and replaced , now it works fine.'

Which Folders of the downloaded subversion would I copy into the FPC 2.6.2 full installation?
Lazarus 1.0.10, 64 bit; Free Pascal 2.6.2; Windows OS; 
Macintosh Desktop AMD 64 bit - Win7 (64 bit) installed on C:\Bootcamp.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Tdbf Tutorial example on 64bit
« Reply #8 on: June 29, 2013, 07:28:38 am »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8887
  • FPC developer.
Re: Tdbf Tutorial example on 64bit
« Reply #9 on: June 29, 2013, 08:53:31 pm »
Note that about a week ago, most of these TDbf patches were merged back to fixes.

 

TinyPortal © 2005-2018