hi,
I try to call 2 proc togather but the second proc seems cannot work like what it work without the first proc.
Below is the code:
proc comparevalue {} {
.....
}
proc writetocsv {} {
.....
}
comparevalue
writetocsv
Please advice.
Thanks
please see the attachment file
there is 2 line one is with io and one is x
how do i compare those 2 list?
I want to get the paramenter that not exsist at both list.
Here is my code:
if { $x == ""} {
puts "x is empty"
set x $i
continue
} else {
foreach i $io {
set y ""
puts $writefile1 "pin...
hi,
i want to check whether the x is a empty list, if not empty list i want perform some function, below is the code.
The function that i want to perform is: I have 2 list, and i want to check whether this 2 list have the same element or not? if not the same, get the extra element.
foreach i...
hi,
I am new to tcl language, just started 1 month ago. I need some help here:
I want to compare the element in the list and get the biggest value and store it. What command should i use?
numberlist [15 30 22 75 50 30A 150 110]
Please advice
Thanks!
My code is as below
set devicelist ""
set readdevice [open "device.txt" r]
while {[gets $readdevice linenew] != -1} {
lappend devicelist $linenew
}
puts $devicelist
and the result is
device1 device2 device3 { device4 } { device5 } { device5 }
Question 1
why my result sometime with curly...
Hi,
I am trying to run the marco in the excel sheet using TCL script.
Below code is trying to open multiple csv file and run the marco to combine the 2 csv file into one excel sheet
package require tcom
set excel [::tcom::ref createobj Excel.Application]
set workbooks [$excel Workbooks]...
how to delete a file with spacing?
example:
Hello world.txt
I use the command
file delete Helloworld.txt
the file cant be delete
Can you show me a way?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.