Recent

Author Topic: New to Lazarus and Databases  (Read 11973 times)

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
New to Lazarus and Databases
« on: October 06, 2010, 12:23:31 pm »
hi guys

Do you have any sample project that is using TSQLite3Connection? Just a simple Adding record, Deleting and Updating.
Can anyone submit a link?
I hope some of you has it, when you were still a newbie of lazarus.

If you don't have the TSQLite3Connection, I'd like to see also in TMYSQL50Connection.


Thank you.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8819
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: New to Lazarus and Databases
« Reply #1 on: October 06, 2010, 12:49:18 pm »
I remember posting one in this forum, but I can't locate it. I'll post a fresh copy tomorrow.

stonefull

  • Jr. Member
  • **
  • Posts: 54

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: New to Lazarus and Databases
« Reply #3 on: October 07, 2010, 07:05:44 am »
Here's my lazarus sqlite3 sample.
http://www.mediafire.com/file/0lssfhdr5mqz44c/lazarussqlite3.zip

The project is based on delphi and I paste to lazarus was great.
The project work perfectly.

The problem is?, it does not use a lazarus template, the project composed of:
unit SQLite3;
unit SQLiteTable3;

How am I going to use the SQLdb TComponent with TSQLite3Connection?

Please if you have some old sample codes using the SQLdb TSQLite3Connection, please do submit a link;

I only need to understand the procedure of how do it works using that component.

And if you think that the project I've shown is good, I may use it, but I really want the TSQLite3Connection of Lazarus template/component.


Thank you for the replys

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: New to Lazarus and Databases
« Reply #4 on: October 08, 2010, 05:23:46 pm »
hey guys?

I got it now using;

SqliteConnection
SqlTransaction
SqlQuery

and the

Datasource
 O:-)


BUT do you think this component palette is still on linux? since Im using windows?
 :-X

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1932
Re: New to Lazarus and Databases
« Reply #5 on: October 08, 2010, 05:27:58 pm »
you think this component palette is still on linux? since Im using windows?

Yes.

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: New to Lazarus and Databases
« Reply #6 on: October 08, 2010, 07:30:54 pm »
So, excited to see my first program running in Linux.  But windows first, I have to setup a ubunto server first.

Thank you

fabienwang

  • Sr. Member
  • ****
  • Posts: 449
  • Lazarus is the best
    • My blog
Re: New to Lazarus and Databases
« Reply #7 on: October 08, 2010, 08:21:17 pm »
hey Xenablaise, you can start a virtual machine on your windows, try to download Virtualbox :)
I'm using Arch Linux.
Known for: CPickSniff, OpenGrabby
Contributed to: LazPaint

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: New to Lazarus and Databases
« Reply #8 on: October 09, 2010, 05:22:54 am »
Quote
Virtualbox

Is that program that starts your computer from windows then boot to linux? linux what? ubunto? redhat? suse? mandriva?

I guess I have a small memory installed.

But I'll be glad to try it.


Thanks

Leledumbo

  • Hero Member
  • *****
  • Posts: 8819
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: New to Lazarus and Databases
« Reply #9 on: October 09, 2010, 06:26:43 am »
Quote
Is that program that starts your computer from windows then boot to linux? linux what? ubunto? redhat? suse? mandriva?
It's a processor emulator. You can use whatever OS there (well... as long as the processor is supported, AFAIK it's only x86).

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: New to Lazarus and Databases
« Reply #10 on: October 10, 2010, 10:51:51 am »
http://www.virtualbox.org/wiki/Downloads
is that link correct? to download virtualbox, is that what you mean?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8819
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: New to Lazarus and Databases
« Reply #11 on: October 11, 2010, 06:43:50 am »
Quote
is that link correct? to download virtualbox, is that what you mean?
Yes and yes

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: New to Lazarus and Databases
« Reply #12 on: October 11, 2010, 08:23:29 am »
theo
Leledumbo  8-)
FabienWang
stonefull

Thanks

 

TinyPortal © 2005-2018