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 Mike Lewis 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. mmoohhaammaadd

    how to input a data array into a proc

    Dear mikrom, many thanks for your reply. it is solved by your help.
  2. mmoohhaammaadd

    how to input a data array into a proc

    Thank you so much for your reply. I knew that "a" is an array, but I don't know how to use it as an input to a procedure and use its elements in the proc. Would you please write the simple procedure of importing array "a" into a proc named mult? or just provide a simple script or example of it...
  3. mmoohhaammaadd

    how to input a data array into a proc

    I want to input a vector "a" (or matrix) to a procedure and do some algebraic operations with its elements: set a(1) 2; set a(2) 3; proc mult {a} { global b set b [expr $a(1)*$a(2)] } mult $a puts "$b" when I run this script it says: can't read "a": variable is array can anyone help me...

Part and Inventory Search

Back
Top