Not sure if this is the best example, but it worked for me�.

Set the variable for the table = T

Change the proc to read

proc tableInsert {row column val} {
        global T
        set T($row,$column) $val
}

This way you can continue to populate the same array (T) with the additional
information you add to your table.

Hope it helps....


Chris


________________________________________
From: Bartis, Robert M (Bob) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 15, 2003 2:18 PM
To: 'vtcl'; 'tcl'
Subject: [vtcl-user] Problem populating the last column of a header row

I am using a tktable widget in a program I built using vTCL. In the main
program I have the following code snippet shown below. Also shown below is a
supporting procedure. The table is define as 2 rows and 6 columns and is
displayed correctly at startup. Like wise the code snippet below populates
the header row properly with the exception of the last column. This column
header is always blank. Does anyone have a suggestion as to what the problem
may be?
�
Code snippet from main
===================================================
�
# Setup table header rows
#
set row 0
set column 0
set header [list "Device IP" "TFTP IP" "Release" "Binary" "Confirmation"
"Message"]
foreach h $header {
��� tableInsert $row $column $h
��� incr column
}
�
�
Supporting procedure
===================================================
proc tableInsert {row column val} {
�� fieldDataTable activate $row,$column
�� fieldDataTable insert active end $val
}
Robert M. Bartis 
Lucent Technologies   
Room HO 1C-413A (HO) / 1B-304 (WH) 
  732.949.4565 (HO) / 973.386.6739 (WH)
7 [EMAIL PROTECTED] 
�



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to