I needed to know the primary key of a table for some code I was writing. Simple enough to get the information from the system tables, but this code would be called quite frequently, so I thought I would need to cache the information. Then I realized that IBX already does this. Look at TIBDatabase.In_Key. Saved me from reinventing the wheel.
-
RSS Links
Categories
-
Recent Comments
- Craig Stuntz on LINQ to SQL : Entity Framework :: WinForms : WPF
- tcmaster on LINQ to SQL : Entity Framework :: WinForms : WPF
- Giel on My CodeRage Presentation: Functional Programming in Delphi 2009
- Craig Stuntz’s Weblog : My CodeRage Presentation: Functional Programming in Delphi 2009 on Implementing Memoize in Delphi 2009
- Paweł Głowacki : Delphi 2009 Online Resources on An Enumeration of Prime Numbers with Anonymous Methods
-
{ 1 } Comments
Craig, Tanks for the tip!
One Question:
Is there any way of knowing, at Delphi with IBX, if the database is shutdown?
Using:
Delphi 2007
Interbase 2007
Post a Comment