Exercises, examples and other material relating to training module T248. This topic is presented on public course Tcl/Tk
For trainees who have studied some basic Tcl on their own, or on an earlier course, this module reviews the basics of the language in order to prepare trainees for additional learning on Tk, Expect, other extensions or advanced features of Tcl.
Related technical and longer articlesWhat makes a good variable name?Brackets and Braces in Tcl
|Articles and tips on this subject||updated|
|4208||Tcl + Tk (Wish) - an introduction and revision example|
Whenever I teach Tcl with Tk, I'm delighted to be reminded how easy it is to put together a graphic user interface (GUI) with Tcl. They may not be the world's prettiest, but they're quick, straightforward and functional. And so it was on the final day of our Tcl Programming course last week, when I did ...
|1469||Curley brackets v double quotes - Tcl, Tk, Expect|
In Tcl, both Curley braces and double quotes can be used to hold a block of program or data together as a single unit / parameter ... but there are differences ...
a) Curley braces can stretch over a number of lines, with new lines within the block being simply a part of the block. So they're ideal ...
|1181||Good Programming practise - where to initialise variables|
It's a good idea to initialise your variables directly before you use them for the first time if you're going to use them as accumulators.
By accumulator I mean that you're going to write assignments such as:
$n += 4; # Perl
incr notepad; # Tcl
lappend flcodes [lindex ...
|1174||Installing Tcl and Expect on Solaris 10 - a checklist|
Hot off the presses from the last couple of days - a check list (and a couple of "Gotcha" notes) concerning the installation of Tcl and Expect on a Solaris 10 system, compiling from scratch were possible.
You'll need a C Compiler
We used gcc (the Gnu C compiler) and we installed it from Sun standard ...
|1092||Tcl training - often for a larger group|
There's a different 'metric' for courses in the different languages we teach - PHP programmers come in ones and twos much of the time, but almost all of the Tcl training we do is for larger groups of delegates, in private courses at their place of work. Why is this?
Tcl is used as an embedded element ...
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from [here]
Topics covered in this module
Basic command syntax.
Loop and control commands.
String handling commands.
Other commands in Tcl.
Special variable in Tcl.
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
. We run
throughout the UK (and beyond for longer courses), and
at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if you live in a different
country or continent to us
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre.