home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
pc
/
exsource
/
8_5.tcl
< prev
next >
Wrap
Text File
|
2003-04-16
|
383b
|
20 lines
#
# Example 8-5
# Using arrays for records, version 1.
#
proc Emp_AddRecord {id name manager phone} {
global employeeID employeeManager \
employeePhone employeeName
set employeeID($name) $id
set employeeManager($name) $manager
set employeePhone($name) $phone
set employeeName($id) $name
}
proc Emp_Manager {name} {
global employeeManager
return $employeeManager($name)
}