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.
Like this:
July 17, 2008 - Posted by dmagin | Embarcadero (CodeGear) stuff
3 Comments »
Leave a Reply Cancel reply
Member
Blogroll
-
Blog Stats
- 81,595 hits
Login
Member of
DelphiExperts Feed- An error has occurred; the feed is probably down. Try again later.
Delphifeeds- WebGLScene: something is brewing in the lab May 31, 2012
- The Traps of The If Then Else Statement in Your Delphi Code May 31, 2012
- Why Managed Code isn’t Managed very Well May 30, 2012
- Only 48 hours left to save $100 on Castalia May 30, 2012
- 50 – Tables Turned May 30, 2012
- Pointers to value and to reference types (was: delphi – Why does TValue.Make require a pointer to an object reference? – Stack Overflow) May 30, 2012
- C++ Webinar, C++Builder Roadmap and Special Offer May 29, 2012
- Getting to grips with using FireMonkey Grids May 29, 2012
- Italian Delphi Day 2012 on June 7th May 29, 2012
- Fields default values, anonymous records May 29, 2012
- What you need on your Mac to develop for OS X or iOS using Delphi XE2 May 29, 2012
- The Emperors New Native – pt. 2 May 28, 2012
- Hi-res screenshots and creating a book index – any ideas? May 28, 2012
- XE Plus Pack – Release 8 (XE and XE2 versions) May 28, 2012
- JSDialog Pack 2.0.019 May 28, 2012
Pages
Archives
- April 2012
- March 2012
- May 2011
- March 2011
- February 2011
- January 2011
- November 2010
- September 2010
- August 2010
- July 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- October 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- February 2008
- December 2007
- November 2007
- October 2007
- September 2007
-
Archives
- April 2012 (1)
- March 2012 (1)
- May 2011 (1)
- March 2011 (1)
- February 2011 (1)
- January 2011 (2)
- November 2010 (1)
- September 2010 (2)
- August 2010 (2)
- July 2010 (1)
- April 2010 (3)
- March 2010 (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