Tiburon: VCL DB Unicode Application with InterBase 2007
Everybody is talking about Tiburon (the next Delphi Version) and the new Unicode Support. Today i play for you with the Unicode Support and Interbase 2007. So let us quick build a InterBase Database and a Browser in Unicode.
First i create a new database in the InterBase with the following Script. I use in this example the ServerCharSet UTF8.
/******************************************************************************/
/* Generated 2008.02.19 17.07.2008 16:21:29 */
/******************************************************************************/
SET SQL DIALECT 3;
SET NAMES UTF8;
CREATE DATABASE ‘YourIpOurComputerName:C:\unicode_data.ib’
USER ‘SYSDBA’ PASSWORD ‘masterkey’
PAGE_SIZE 8192
DEFAULT CHARACTER SET UTF8;
/******************************************************************************/
/* Tables */
/******************************************************************************/
CREATE TABLE TBL_TEST (
ID INTEGER NOT NULL,
TEXT VARCHAR(100)
);
/******************************************************************************/
/* Primary Keys */
/******************************************************************************/
ALTER TABLE TBL_TEST ADD CONSTRAINT PK_TBL_TEST PRIMARY KEY (ID);
After this i create in Tiburon a new VCL Application.
After this i create a new shortcut in the Datanbase Manager

Give a Name for the new InterBase Connection

Modify the Connection for the Parameters


Cause we like to use Interbase with DBXpress we add in the uses are the Unit DBXInterbase.

Now we are adding on the TForm:
- SQLConnection
- SimpleDataSet
- DataSource
- DBNavigator
- DBGrid

On SQLConnection we change in the Objecinspector the Properties
- ConnectionName -> MyUnicode
- add in Params the servercharset UTF8
- set LoginPromt to False (if you like)


On your SimpleDataSet1 change the Properties:
- SQLConnection to your SQLConnection1
- DataSet->CommandText to select * from TBL_TEST
- Active-> True

Change also
- DataSource1: DataSet -> SimpleDataSet1
- DBNavigator1 & DBGrid 1: DataSource -> DataSource1
To automatic update to the InterBase Database add in the SimpleDataSet1 Event OnPost the following code:

Now let us save all, compile and start:

Ok let’s add some text. To get some fun characters (unicode) you can start the windows Program CharMap


You see the VCL works fine with the Combination Unicode and InterBase 2007.
Great Works CodeGear!!!
Regards Daniel Magin.
July 17, 2008 - Posted by dmagin | Embarcadero (CodeGear) stuff | | 3 Comments
3 Comments »
Leave a comment
Member
DelphiLive! 2009
Blogroll
-
Blog Stats
- 46,678 hits
Login
Member of
DelphiExperts Feed- Veranstaltungsbewertung Berlin/Stuttgart
- DelphiExperts Power Workshop Berlin
- DelphiExperts Power Workshop Stuttgart
- ASP.NET mit Delphi Prism
- Einführung in die professionelle Softwareentwicklung unter .NET mit Delphi Prism
- Entwicklung von Webanwendungen mit der VCL für das Web/IntraWeb
- Delphi 2010 – Was ist neu? Ein Intensiv-Workshop
- DelphiExperts Day – Delphi 2010 Dortmund
- DelphiExperts Day – Delphi 2010 Hannover
- DelphiExperts Roadshow – Düsseldorf
Delphifeeds- Technical Leadership #2 December 15, 2009
- Upcoming Michael Rozlog Interview December 15, 2009
- No Access Violation For Me - Return a Property Value From a Nil Delphi Object December 15, 2009
- Migrating to C++Builder 2010" live webinar tomorrow, Tuesday, December 15, 11:00AM PST / 2:00PM EST December 15, 2009
- In-Memory DataSets: ClientDataSet and .NET DataTable Compared: Part 3: Populating In-Memory DataSets December 15, 2009
- Delphi 2010 Handbook Part 1 PDF Available December 14, 2009
- Delphi 2010 Updates 4 and 5 December 14, 2009
- RAD Studio 2010 Update 4: Report on Automatic Incident Reports December 14, 2009
- RAD Studio 2010 Update 4/5 Released December 14, 2009
- Reading about your favorite tool Delphi December 14, 2009
- Delphi/C++Builder 2010 Updates 4 and 5 available December 14, 2009
- Random Thoughts on the Passing Scene #138 December 14, 2009
- Is Embarcadero working on a Garbage Collector for Delphi? December 14, 2009
- Commonly Confused Tidbits re .NET Garbage Collector December 14, 2009
- Delphi 2010 DirectWrite "Hello World" Example December 14, 2009
Pages
Archives
-
Archives
- November 2009 (4)
- October 2009 (3)
- August 2009 (5)
- July 2009 (9)
- June 2009 (2)
- May 2009 (10)
- April 2009 (2)
- March 2009 (4)
- February 2009 (4)
- January 2009 (3)
- October 2008 (2)
- August 2008 (1)
-
Categories
-
RSS
Entries RSS
Comments RSS


[...] Tiburon: VCL DB Unicode Application with InterBase 2007 [...]
Pingback by Serge’s Technology View » Blog Archive » So it began: Tiburon in the news - July 21, 2008 | July 21, 2008 |
Hi,
sehr interessanter Artikel, nur irgendwie werden bei mir die Bildchen nicht angezeigt, nur kleine schwarze Balken.
MfG
ups i changing server is not so easy
thanks
it’s now fixed