Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 19th, 2008, 07:52 PM
ReCycled ReCycled is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 3 ReCycled User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 41 sec
Reputation Power: 0
Modifying Firebird Tables from Lazarus Client

Hi. I really need help.

I am new to Firebird and Lazarus (and to RAD, OOP and to “real mission critical not-toy-desktop-databases”, etc). To teach myself before starting a real project –not an easy task- I tried building a simple one form program to edit a list of accounts with my Windows XPpro laptop as both sever and client. I installed the Superserver version 2.0.3, -installed as a service- and (I think) the FBCLIENT.dll and not the GDS32.dll, since I understood this to be the preferable choice, for those with no “legacy” issues.

I Used Firebird’s ISQL tool to build a database (Test.fb, not “.fdb” because it was what the TIBConnection seemed to like when searching for a database to link) with two tables. Table1 with Two columns: Acct_No and Acct_Descrip, and a Table2 with an additional column using Firebird’s Generator feature to create an “autonumeric” ID column. This in case it was needed by Lazarus’ Navigator buttons.

From the SQLdb tab I dropped boxes on the form: TIBConnection, TSQLQueery and TSQLTransaction. Wrote a “SELECT * FROM.. (table)” command on the TSQLQueery. Connected everything and also dropped a TDBGrid, a TDBNavigator and a TDBEdit, this last to leave the grid as read-only. Everything works fine as far as moving the pointer, editing, inserting, and deleting rows in the DataSet of either table, as displayed by the grid, but changing any data inside either of the two tables is, however, impossible.

I have spent weeks reading everything I could find in the Firebird’s and Lazarus’s documentations, wikis, and everything I could Google. It helped to get me this far, but no further. I have tried everything I could think of, and/or copy, from the little information available, and have only produced errors or access violations. I am ready to give up.

This is a last resort request. If someone out there could point me to a reference, example, white-paper, web-page, book, or any resource that could help me with this, it would be great. Do not want to go back to Dbase tables, and last century’s DOS Foxbase programming.

Help!

Reply With Quote
  #2  
Old March 20th, 2008, 03:42 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,707 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 2 h 38 m 50 sec
Reputation Power: 259
You should start reading the sticky on top of this forum, it contains links to many useful resources, I've also quite some posts on my blog about Firebird and a small tutorial in my old site, you can find links to both in my signature.
Do you want to do only Pascal or other languages like Java, *.NET, Php?

Reply With Quote
  #3  
Old March 26th, 2008, 01:06 AM
ReCycled ReCycled is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 3 ReCycled User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 41 sec
Reputation Power: 0
Thanks for the links pabloj. Had I found and read your "Getting started with Firebird" before, I would have saved a LOT of time. I will have to go through it more slowly to pick-up a lot of details I have yet to master regarding Firebird.

Quote:
Originally Posted by pabloj
Do you want to do only Pascal or other languages like Java, *.NET, Php?


Briefly stated, what I really wanted was to decide on a single development tool and database for the apps I write mostly (but hopefully not exclusively) for my own small businesses. Since the best way to learn is by doing something real, I decided to try and use Lazarus + Firebird (therefore Pascal) for a small initial simple accounting project. If happy with it, I would then re-write my old foxbase programs and more recent Access aps, plus new projects on the drawing board, using this tools only; link all my loose separate apps into a single integrated tool, and forget all other language alternatives for at least five or six years. I am currently using Windows but wanted to leave the door open for Linux later on (Therefore Lazarus). License cost IS an issue in this decision.

I considered Firebird+Lazarus to be an overkill for my needs, but both: free and worth learning. Java or *Net too much for this old weekend programmer. -I understand that *NET would be only worthwhile for Internet related apps, and do not even know what php is good for.

Anyway it seems the details of managing Firebird from a Lazarus app is a well kept secret, only accessible to the initiated. I cannot find a single "how to" example on this in the web or anywhere (not even a "buy this book" hint! & honestly, recommendations to read Delphi manuals I have found to be not really valid, not a real help as far as using Firebird+Lazarus) so I am considering on settling on Lazarus or Delphi + my less secure, but easily managed old DBase tables. After all, if after two moths I still cannot even write a program to post data to a table, I'm toast.

And that's the story. Sorry if I am too "verbose".

PS: I have noticed a lot of your blogs relate to MySQL. Would you recommend I go the Lazarus+MySQL route instead?

Reply With Quote
  #4  
Old March 26th, 2008, 03:40 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,707 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 2 h 38 m 50 sec
Reputation Power: 259
Very long post ... here are my two cents ...
1. Java and .NET can do both desktop and web apps (well .Net is much better than Java at desktop apps)
2. I'd rather have Firebird than MySQL for a small accounting app (and Firebird embedded is great!)
3. You might want to look at FBlib for Lazarus + Firebird

Reply With Quote
  #5  
Old March 29th, 2008, 06:41 PM
ReCycled ReCycled is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 3 ReCycled User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 41 sec
Reputation Power: 0
Thanks for 1, 2 & 3.

On 3 (FBLib): Cannot install because package fblib 0.8.5 will not compile. Error message: "No member is provided to access properties". FBLDataset.pass (184,21) IsUniDirectional := True;


Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Modifying Firebird Tables from Lazarus Client


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway