[fpc-pascal] converting TjanSQL

Bisma Jayadi bisma at brawijaya.ac.id
Tue Mar 21 08:30:24 CET 2006


> If you are referring to the posstr functions, try replacing them with
> the PosEx() function in strutils.

Finally, I succeed to compile TjanSQL class on Lazarus 0.9.13 (FPC 2.1.1 
2006/03/10). These are what I did:
- I've changed the PosStr() and PosText() functions in janSQLStrings unit with 
the PosEx() in StrUtils unit.
- I also have add '@' operator to all procedure/ function parameters in 
janSQLxxx units.
- And I have to add Delphi mode directive on mwStringHashList unit, because 
without it FPC failed to compile the unit (because some kind of pointer things 
related).

And I also succeed convert the demo application using Lazarus convertion tool. 
But, unfortunately... though the demo application is able to run, but it can't 
execute any given SQL commands. Even the basic "connect to" command considered 
as "unknown SQL command". :(

I still didn't do any comprehensive investigation yet. But I doubt the problem 
is in the program logics because it works very well on Delphi. I think it's 
because something in the convertion process, but I don't what the exactly is.

Any kind of help will be very much appreciated. Thank you.

-Bee-

has Bee.ography at
http://beeography.wordpress.com



More information about the fpc-pascal mailing list