I have a - to my opinion - simple problem: I have two columns, containing numbers. I want to combine these numbers with a string operation in a third column (and later use this column as a label-column).
Example:
ColA ColB ColC 1 5 15
How can I (1) convert numbers to string, and (2) join these strings?
About how to convert numeric to string, please refer to this page. For your case, you need a loop structure to go through all the rows. You can put the following script in the Before Formula Scripts panel of the Set Values dialog and have a try.
Thank you very much, Penn. Problem solved to 100%! :-)
May I still ask two little things (giving me a link for further reading is also ok), since I am new to LabTalk:
(1) Why do you use $(ii) instead of just ii to reference to the variable ii? (2) I tried to change the type of the column to "label" via wks.col3.type = 5; It only worked for "col3" but not for col(c). In your example, col(c) did also work. Why?
For 1st question: The $() notation is used for numeric to string conversion. This notation evaluates the given expression at run-time, converts the result to a numeric string, and then substitutes the string for itself. Please refer to substitution notation.
For 2nd question: This is about how to access column object. Please refer to this page.