| Original Message (ID '125247') By Michael: |
| Your function call is equivalent to
{a, b}[[1]] = "Help!!"
The head {a,b} is not a symbol. Try instead
funcTest[list_, str_String, count_Integer] := list[[count]] = str;
SetAttributes[funcTest, HoldFirst];
list = {a, b};
funcTest[list, "Hi", 1];
list |
|