Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

list of array of records 1

Status
Not open for further replies.

zskater

Programmer
Apr 14, 2001
22
GB
i am reading my tcl book at the moment and having difficulty getting
my head around how to build a list that contains an array of records

and then being able to populate the arrays with data

does anyone have any example code that might make things clearer
for me

Cheers
Steve
 
Hm. I'm not exactly sure what you're asking for. We might have a bit of a terminology mismatch, or perhaps you haven't quite learned that what Tcl refers to as an "array" is actually an associative array implemented as a hash. (It's similar to what Perl refers to as a "hash", or -- less so -- to what Python refers to as a "dictionary".)

Perhaps the following pages on the Tcl'ers Wiki ( will give you a better understanding of how Tcl arrays work and how to build complex data structures in Tcl:

"Arrays/Hash Maps", "A simple database", - Ken Jones, President
Avia Training and Consulting
866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax
 
the first language i learnt was Pascal, I was thinking of the work i had done with that , i sure you could build one in it obviously not in tcl though

thanks for the links

cheers
steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top