Recent

Author Topic: Just migrated from VB6 to Lazarus and Firebird  (Read 4182 times)

asdf

  • Sr. Member
  • ****
  • Posts: 310
Just migrated from VB6 to Lazarus and Firebird
« on: October 19, 2010, 12:28:25 pm »
I'm so new to Lazarus.
After seeing some video tutorials,
I saw the tutor used 4 controls
such as TIBConnection, TSQLTransaction,TSQLQuery and TDatasource.
And the last one is TDBGrid to disply data.

Before that in VB6
I always used

sql1 = "select * From product Order By productcode"
Dim cndb As New ADODB.Connection
Dim rsdb As New ADODB.Recordset
cndb.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=inventory1.mdb;Persist Security Info=False"
cndb.Open
rsdb.Open sql1, cndb, adOpenStatic, adLockPessimistic
Text1.text=rsdb.Fields(0)
etc....

Could you please help teach writing code in Lazarus to connect firebird
the same style as I did in VB6. Thank you in advance.
Lazarus 1.2.4 / Win 32 / THAILAND

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: Just migrated from VB6 to Lazarus and Firebird
« Reply #1 on: October 19, 2010, 12:34:16 pm »
try to read that post first;
http://forum.lazarus.freepascal.org/index.php/topic,10811.0.html

after a few test, you may ask again and continue discussions here
 :D

 

TinyPortal © 2005-2018