Recent

Author Topic: [SOLVED] Paradox, anyone using this writting an app or know?  (Read 8193 times)

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 451
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
[SOLVED] Paradox, anyone using this writting an app or know?
« on: October 10, 2023, 07:41:04 pm »
Hello All, I'm new to Lazarus but not pascal. In my younger years programmed a lot of apps for small to medium sized companies. Started out with Clipper, then moved to Delphi 5 and then Delphi 7. When I quit Clipper and moved to Delphi I also started designing these small business system using a Paradox database which was supported back then by Borland's Delphi.  Just curious, I saw a screen shot of Lazarus on a website that had the Paradox component but it's not in my Lazarus install. Since I'm new to Lazarus and writing a single user system, not more than 3 people using it at the same time I foresee, I don't see the need to start out with SQLite or Firebird because I don't have any experience with either and would have to go thru a learning curve. I've started developing with TDbf but have all these Delphi apps that were designed with Paradox databases.
Thanks,
Donald aka 1HuntnMan
« Last Edit: March 12, 2024, 05:56:28 pm by 1HuntnMan »

Handoko

  • Hero Member
  • *****
  • Posts: 5545
  • My goal: build my own game engine using Lazarus
Re: Paradox, anyone using this writting an app or know?
« Reply #1 on: October 10, 2023, 08:07:31 pm »
I tried Lazarus + Paradox long ago. It was working good, I had no complaint about it. But it seemed to me TDBF was better maintained so I abandoned Paradox and used TDBF. I now learning and using Firebird.

If you can use TDBF, learning Firebird or other SQL-based databases isn't hard. The main reason I abandoned TDBF is a potential license issue, read more here:
https://forum.lazarus.freepascal.org/index.php/topic,60100.msg448769.html#msg448769

To enable LazParadox in your Lazarus:
Lazarus main menu > Package > Install/Uninstal Packages > on the right panel, search for: lazparadox 0.0 > Instal selection > Save and rebuild IDE > wait until the Lazarus restart

To install TParadoxDataset in your Lazarus:
Lazarus main menu > Package > Online Package Manager > search for: TParadoxDataset > Click the checkbox > Install > follow the instruction until finished
« Last Edit: October 10, 2023, 08:40:25 pm by Handoko »

wp

  • Hero Member
  • *****
  • Posts: 13560
Re: Paradox, anyone using this writting an app or know?
« Reply #2 on: October 10, 2023, 08:14:26 pm »
To enable LazParadox in your Lazarus:
Lazarus main menu > Package > Install/Uninstal Packages > on the right panel, search for: lazparadox 0.0 > Instal selection > Save and rebuild IDE > wait until the Lazarus restart
Be prepared for problems: the paradox package coming with Lazarus requires the pxlib.dll accessible by the IDE, and this dll - AFAIK - exists only for 32 bit. If these conditions are not met your IDE will not start any more!

To install TParadoxDataset in your Lazarus:
Lazarus main menu > Package > Online Package Manager > search for: TParadoxDataset > Click the checkbox > Install > follow the instruction until finished
That's better, but only for reading...

Handoko

  • Hero Member
  • *****
  • Posts: 5545
  • My goal: build my own game engine using Lazarus
Re: Paradox, anyone using this writting an app or know?
« Reply #3 on: October 10, 2023, 08:17:54 pm »
Be prepared for problems: the paradox package coming with Lazarus requires the pxlib.dll accessible by the IDE, and this dll - AFAIK - exists only for 32 bit.

As I said long ago. That was when I was using WinXP, which means 32-bit.

korba812

  • Sr. Member
  • ****
  • Posts: 483
Re: Paradox, anyone using this writting an app or know?
« Reply #4 on: October 10, 2023, 10:47:52 pm »
If you are not planning to convert a Paradox database to something more widely supported then my advice is to stay with Delphi. Delphi supports Paradox through BDE, so you can use SQL and QBE queries. The pxlib library provides only basic access to the database files, provides only basic index support and does not support SQL queries.

TNesler

  • Newbie
  • Posts: 1
Re: Paradox, anyone using this writting an app or know?
« Reply #5 on: January 07, 2024, 02:41:27 am »
Would it make more sense to convert your Paradox files to DBase Files?  Is DBase supported better in Lazarus/FPC?  I ask because I too am starting to use Lazarus from Dephi and have existing programs I want to convert.

cdbc

  • Hero Member
  • *****
  • Posts: 2816
    • http://www.cdbc.dk
Re: Paradox, anyone using this writting an app or know?
« Reply #6 on: January 07, 2024, 10:35:46 am »
Hi
If you're gonna convert, then go the extra mile and convert to SQLite3 right away, makes much more sense  ;)
Then you'll be in "Sql-Country" and the step towards multi-user sql-engines is much smaller  8-)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Thaddy

  • Hero Member
  • *****
  • Posts: 19268
  • Glad to be alive.
Re: Paradox, anyone using this writting an app or know?
« Reply #7 on: January 07, 2024, 11:31:54 am »
There is Paradox support as mentioned, but it is merely to convert to other, more better supported and SQL capable formats. The same goes for DBF support. There is, pretty good, support for both formats, to be able to convert it to something more modern.
I still have to use Paradox and DBF format, but only to convert to a more modern format. Don't use both formats for new development. EVER!
(Hurts me a bit because I wrote some Paradox and DBF compatible engines back in the days, but both formats have passed their sell-by date)
« Last Edit: January 07, 2024, 11:36:01 am by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

egsuh

  • Hero Member
  • *****
  • Posts: 1800
Re: Paradox, anyone using this writting an app or know?
« Reply #8 on: January 08, 2024, 05:32:47 am »
If SQL feature is not necessary, I think TSQLiteDataSet or something will provide similar functionalities with BDE-paradox. Doesn't it? So, moving to SQLite is recommended, I think.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8572
Re: Paradox, anyone using this writting an app or know?
« Reply #9 on: January 08, 2024, 09:05:51 am »
Don't use both formats for new development. EVER!

Thaddy, in the interest of getting an unambiguous point over to OP, do you mean

"Don't ever use Paradox, and don't ever use DBF!"

or

"Don't try to use both at the same time!".

My own opinion is that both are true, and frankly I'd lean towards the first- stronger- interpretation.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Thaddy

  • Hero Member
  • *****
  • Posts: 19268
  • Glad to be alive.
Re: Paradox, anyone using this writting an app or know?
« Reply #10 on: January 08, 2024, 10:08:13 am »
What I mean is don't ever use Paradox or dbf format (any dbf format) for new projects and use the Paradox or DBF support from Freepascal to port your applications to a better supported and current format. So don't use legacy. There is one  exception: maintenance of an older application may be an acceptabele reason.
My advice for newer formats would be either Progress or MariaDb/MySql for complex multi-user programs or Sqlite for single user. (Don't use firestarter or whatever it is called)
« Last Edit: January 08, 2024, 10:19:43 am by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8572
Re: Paradox, anyone using this writting an app or know?
« Reply #11 on: January 08, 2024, 10:55:15 am »
Thanks for that, I agree. In particular, I've seen people trying (with various degrees of success) to use Paradox multi-user for decades: bad idea. /Very/ bad idea, allowing for the ready availability of proper client-server databases from the early 00s onwards.

I think you mean Firebird, but the name does appear to vary a bit. The major problem I had with that when I looked (admittedly, some years ago) was documentation: essential information spread over too many manuals and errata. OTOH, with the exception of e.g. role creation its syntax was usefully compatible with PostgreSQL: fairly easy to write a program which could use either.

MarkMLl

p.s. What's "progress"?
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Zvoni

  • Hero Member
  • *****
  • Posts: 3398
Re: Paradox, anyone using this writting an app or know?
« Reply #12 on: January 08, 2024, 11:09:12 am »
p.s. What's "progress"?
No idea if it's just a Typo of Thaddy (maybe he meant PostGres), but "Progress" actually is a RDBMS
https://www.progress.com/openedge
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

Thaddy

  • Hero Member
  • *****
  • Posts: 19268
  • Glad to be alive.
Re: Paradox, anyone using this writting an app or know?
« Reply #13 on: January 08, 2024, 11:26:22 am »
https://www.postgresql.org/
One of the most used and capable open source  SQL database
objects are fine constructs. You can even initialize them with constructors.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8572
Re: Paradox, anyone using this writting an app or know?
« Reply #14 on: January 08, 2024, 11:32:08 am »
https://www.postgresql.org/
One of the most used and capable open source  SQL database

Yes, and which I've been using for 20+ years.

I though that was probably what you meant, but particularly when a relative newcomer is asking for advice I think it behooves everybody to try to be unambiguous.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018