Professional Documents
Culture Documents
Blaise 15UK PDF
Blaise 15UK PDF
Pascal
15/97
Download edition
STARTER
VERSION
February 2010
Publisher: Foundation for Supporting the Pascal Programming Language
in collaboration with the Dutch Pascal User Group (Pascal Gebruikers Groep)
Stichting Ondersteuning Programmeertaal Pascal
BLAISE
PASCAL MAGAZINE 15
ALL ABOUT DELPHI AND DELPHI PRISM(.Net) ,LAZARUS & PASCAL AND RELATED LANGUAGES
CONTENTS
Articles
Delphi XE Starter edition reviewed
by Howard Page Clark
page 7
Authors
B Peter Bijlsma,
C Marco Cant,
D David Dirkse, Frans Doove, James D. Duff
G Primo Gabrijeli,
H Fikret Hasovic
N Jeremy North,
O Tim Opsteeg,
P Herman Peeren, Howard Page-Clark
R Michael Rozlog,
S Henk Schreij, Rik Smit, Bob Swart,
page 13
page 21
page 28
Editors
Peter Bijlsma, Rob van den Bogert, W. (Wim) van Ingen Schenau,
Miguel van der Laar, M.J. (Marco) Roessen .
Correctors
Howard Page-Clark, James D. Duff
Translations
M. L. E. J.M. (Miguel) van de Laar,
Kenneth Cox (Official Translator)
page 35
Subscriptions
1: Printed version: subscription 60.-(including code, programs and printed magazine, 4 issues
per year including postage).
2: Non printed subscription 35.-(including code, programs and download magazine)
Subscriptions can be taken out online at
www.blaisepascal.eu
or by written order, or by sending an email to
office@blaisepascal.eu
Subscriptions can start at any date. All issues published in the
calendar year of the subscription will be sent as well.
Columns
Foreword page 4
Advertisers
Advantage Database Server
Cary Jensens newest book about
Advantage Database Server
Components for Developers
Database Workbench Pro
by Upscene Productions
DA Soft - AnyDac
TMS Software
page
page 5
page 40
page 6
page 27
page 19 / 20
page 27
Copyright notice
All material published in Blaise Pascal is copyright SOPP Stichting Ondersteuning Programeertaal Pascal unless otherwise noted and may not be
copied, distributed or republished without written permission. Authors agree that code associated with their articles will be made available to
subscribers after publication by placing it on the website of the PGG for download, and that articles and code will be placed on distributable data
storage media. Use of program listings by subscribers for research and study purposes is allowed, but not for commercial purposes. Commercial use of
program listings and code is prohibited without the written permission of the author.
Page 2
COMPONENTS
DEVELOPERS
Foreword
A programming beginner?
Who wasn't at one time? We all have our memories about that phase.
Those were the days...
Actually it was rather like an earthquake when I had the first glimpse of Delphi...
It felt like being in love.
The steadily developing tool became better and better, in spite of the problems that each release
threw up. Even today it continues to improve.
And finally here is the first new Starter Edition in years.
Forget all the complaints made towards Embarcadero about their waiting too long and taking too
much time. We now have a beginner's version again.
This is a great tool even for professionals.
You can do almost anything with this Starter version.
Of course it is cut down from the Professional Edition, and you can discuss endlessly what should
or should not have been included in it.
But we all understand that Embarcadero needs to be profitable in order to continue development
of its tools, and actually I think this is a very fair-priced coding tool.
If you really want a Pascal IDE for nothing, you can use Lazarus.
So we can do our task again and try to convince beginners,
teachers and start-ups that Delphi (Pascal) is the best learning,
teaching and development language in programming.
Let's get on with demonstrating that...
Blaise Pascal
Page 4
COMPONENTS
DEVELOPERS
Page 6
expert
Page 7
Figure 1: The Delphi XE Starter IDE showing all toolbars - left part
Page 8
COMPONENTS
DEVELOPERS
Figure 1: The Delphi XE Starter IDE showing all toolbars - right part
Februari 2011 BLAISE PASCAL MAGAZINE 15
Page 9
The IDE has not changed greatly from Delphi 2010, but an
enhancement included in the Starter version is the integration
into the IDE of Subversion features (from CollabNet) so you can
use them directly, and have no excuse for neglecting version
control of your projects! Subversion functionality is accessed
from the File menu, which has a new Open From Version
Control option which shows a Checkout dialog where you can
checkout a project, once you have set up a repository
(see Figure 4), and from the Project context menu (see Figure 5).
Figure 3: The IDE configured to give more elbow room for editing code
Out-of-the-box, before adding any third party components XE
Starter includes 22 pages of components. If you discount the
deprecated BDE and Win 3.1 pages, and the 6 pages of open
source Indy 10 components that is still 14 pages of high quality
VCL components, and those pages are identical to those pages
in the more expensive XE Edition palettes, except for the Data
Access page which lacks TClientDataSet and the TXML
components. And, unlike the crippled Turbo Delphi, you can
install further components into Delphi XE Starter (unless they
require external compilation like the DevExpress components).
COMPONENTS
DEVELOPERS
Once you have burned the ISO to a DVD you will find it
contains over 40 offerings, including some freeware or
open source Delphi components and wizards, including
CnPack and the JEDI library and components. Installation
of the JEDI components requires use of a binary installer
(not included on the ISO) available from their website. You
can also download an excellent Windows installation
engine, InstallAware Express, CodeGear Edition, which
makes the business of producing Windows .msi files for
distributing your software bearable (see Figure 6). There is
also a trial licence offered for the download of ER/Studio,
a database modelling and design tool.
Figure 4: Checking out a software project using the integrated CollabNet Subversion server
Not part of the installation process, but available free
from the Embarcadero site for registered users is a useful
.pdf download of Bob Swart's new book, Delphi XE
Starter Essentials. In spite of the mention of XE Starter in
the title, however, there is only one chapter devoted to the
Starter Edition. Misleading title apart, it is a good book,
and the relevant chapter covers the Starter IDE in some
detail. The other chapters give an overview of language
features added since Delphi 2009, including Unicode.
COMPONENTS
DEVELOPERS
Page 11
Figure 7: Trying to run the Delphi compiler at the command- line is frustrating
IDE shortcomings in the Starter Edition:
COMPONENTS
DEVELOPERS
Figure 8:
The Swat.dproj
About box
expert
Examples
COMPONENTS
DEVELOPERS
Page 13
Delphi XE Starter tried out with a demo program: a littele Mailserver (continuation 1)
COMPONENTS
DEVELOPERS
Delphi XE Starter tried out with a demo program: a littele Mailserver (continuation 2)
ini : TIniFile;
begin
Ini := TIniFile.Create(ChangeFileExt
(Application.ExeName,'.ini'));
try
ini.WriteString('SMTP','Host',ledHost.Text);
ini.WriteString('MAIL','From',ledFrom.Text);
ini.WriteString('MAIL','To',ledTo.Text);
ini.WriteString('MAIL','CC',ledCC.Text);
finally
ini.Free;
end;
end; (* SaveSettings *)
Password = 'masterkey'
COMPONENTS
DEVELOPERS
Page 15
INTERNATIONAL
PASCAL
CONFERENCE
IN HOLLAND
20
Page 16
COMPONENTS
DEVELOPERS
Delphi XE Starter tried out with a demo program: a littele Mailserver (continuation 3)
ledTo.Text
:=
dmStarter.tblMyNamesEmail.AsString;
COMPONENTS
DEVELOPERS
Page 17
Delphi XE Starter tried out with a demo program: a littele Mailserver (continuation 4)
So, when the program is run, the 'To' edit box is initialised
with the Email field taken from the selected record in the
database table pointed to by the tblMyNames component
within the DataModule unit named dmStarter.
Summary
Page 18
COMPONENTS
DEVELOPERS
195EU
695EU
75EU
275EU
Sophisticated DB-aware or non DB-aware multipane or multi-serie vertical & horizontal oriented
charts. Supports Line, Bar, Area, Band, Stacked
Bars, Stacked Area, Pie, Donut, OHLC, Spider,
CandleStick, Histogram, Bubble, Cylinder, Pyramid,
Error, Digital line charts.
175EU
575EU
95EU
395EU
75EU
225EU
125EU
395EU
95EU
395EU
expert
By your editor
COMPONENTS
DEVELOPERS
Page 21
COMPONENTS
DEVELOPERS
COMPONENTS
DEVELOPERS
Page 23
Figure 11:
Create a new application
COMPONENTS
DEVELOPERS
COMPONENTS
DEVELOPERS
Page 25
LAZARUS,
including
LAZARUS
USB STICK
the complete guide
Including
M. van Canneyt,
M. Grtner, S. Heinig,
F. Monteiro de Cavalho,
I. Ouedraogo.
COMPONENTS
By Cary Jenssen
expert
COMPONENTS
DEVELOPERS
Views
COMPONENTS
DEVELOPERS
Page 29
Page 30
COMPONENTS
DEVELOPERS
Upgrade Price
899
499
899
499
1399
799
1999
999
(regularly 1299)
1999
999
(regularly 1299)
2799
1499
(regularly 1799)
expert
COMPONENTS
DEVELOPERS
Page 31
Page 32
Type
Size
COMPONENTS
DEVELOPERS
TadTableIterator
Page 33
www.sybase.com/products/databasemanagement/advantagedatabaseserver/delphi-components
Page 34
COMPONENTS
DEVELOPERS
expert
Figure 2:
Use the ellipsis to browse your files
COMPONENTS
DEVELOPERS
Page 35
Figure 4:
Choose for Install into a new package
In the next window (Figure 5) we have to give our new package a name. This is
the name we will see in the Tool Palette. By the way you can always rename it in
the Tool Palette by rightclicking the category name. Give it a clear description and
choose Delphi package. Click Finish and if the source is correct then all the work
is done for us. (Figure 6) Now we can use our new installed component(s), see
Figures 13 and 14 at the end of this article.
And now the slow way.
The slow way means that we have to do a lot of the work ourself. We have to
know that we have to put our component(s) files into a container called a package
before we can register them into the RAD studio.
Figure 5:
The install into new package window
Page 36
COMPONENTS
DEVELOPERS
Moving /adding your components into the Delphi Starter Edition? (Continuation 2)
Step 2
To add something to it we need to rightclick the
mouse pointer over Package1.bpl.
In the next pulldown we choose Add (Figure 9)
and browse the next window (Figure 10) towards the
component files and pick Open.
Step 3
Rightclick the mouse pointer over Package1.bpl and
click Rename to give the package1 the name you want
to see as a category on its tab in the Tool Palette.
Step 4
Use the same window to Save it.
Step 1
Choose in the main menu the item File "New "PackageDelphi. (Figure 7) and you will find the brand new
Package1.bpl in the the IDEs Project Manager (figure 8)
Figure 11: Contains has been filled, and the package renamed from package1
Moving /adding your components into the Delphi Starter Edition? (Continuation 4)
www.blaisepascal.eu
Page 39