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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Natiya

    checking a value inside a list

    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.
  2. Natiya

    checking a value inside a list

    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...
  3. Natiya

    checking a value inside a list

    @xwb just edited that, thanks!
  4. Natiya

    checking a value inside a list

    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] !=...
  5. Natiya

    concat variables in new lines

    I found the solution: gset listaMensajes [join [list "[gget listaMensajes]" "$mensaje"] \n] [peace]
  6. Natiya

    concat variables in new lines

    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]
  7. Natiya

    concat variables in new lines

    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...
  8. Natiya

    Polar diagram with TCL

    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!
  9. Natiya

    Polar diagram with TCL

    That looks very useful, thank you! :)
  10. Natiya

    Polar diagram with TCL

    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!
  11. Natiya

    store values from a loop in a list

    Sorry, there were a mistake in the lists boundaries [ponder] but you understood what I needed! Thank you so much!
  12. Natiya

    store values from a loop in a list

    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} {...

Part and Inventory Search

Back
Top