Thanks a lot @mikron!!
I found the issue:
puts "val = \"$val\"" ---> val = "802.11ac(auto) "
so there was a space there!! MANY THANKS [bigsmile]
The "$valor" was a typo when writing the post, sorry, I already corrected it.
Thanks guys, but something weird is happening[3eyes]
This is what I get so far:
puts $ref
puts $val
set elements [split $ref ","]
puts [lindex $elements 0]
puts [lsearch -nocase $elements $val]
puts [string first $val $ref]
ref --> 802.11ac(auto),802.11n+a
val --> 802.11ac(auto)
elements...
I've got this variable named "ref":
802.11ac(auto),802.11n+a
Then I have this value, named "val":
802.11ac(auto)
so I want to check if $val is inside $ref
This is what I do:
set elements [split $ref ","]
if {([llength $elements] > 1) && ($val != "")} {
if {[lsearch $elements $val] !=...
Sorry, it's the same list I want to concatenate!
gset listaMensajes [concat [join [gget listaMensajes] "\n"] "\n" "$mensaje"]
Anyway, I tried the code you wrote and it separates each word in the first puts and it shows it in one line in the second puts [neutral]
I'd like to concat some string-based variables and I want each of them in a new line. However, I can't find the correct way to write the code. This is what I tried:
set mensaje "Error: esta atenuacion: $att dB\n"
gset listaMensajes [concat [gget listaMensajes] "$mensaje"]
set mensaje "Error...
any idea on how to close the plot pop-ups in example plotdemo7.tcl? Apparently, in order to save it, you need to execute the canvas bit but then one needs to close the plots manually?
Thank you!
Hi everyone,
does anyone know a graphs library or any way to plot a polar diagram with TCL? Would it be possible to do it in an Excel/csv file?
Thank you!
Hi there,
I'd like to know how to store the values 90 89 88 ...0 -81 -82 ...-90 in a list/array. I thought I could do a for loop and store the iteration variable in the list/array but I'm a bit confused with the syntax. I'm trying to do this:
for {set i 90} {$i > 0} { incr i -1} {...
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.