I tried modifying each value on my array by multiplying 10 but I got an error when I tried to call in LC.
Sorry for newbie question.
Code: Select all
public handler testLoop(in pArray as Array) returns Array
variable tResult as Array
variable tKey as optional any
repeat for each key tKey in pArray
put pArray[tKey]into tResult[tKey] //THIS WILL WORK
//put pArray[tKey] * 10 into tResult[tKey] //ADDING "* 10" > THIS WILL WILL HAVE AN ERROR
end repeat
return tResult
end handler
Code: Select all
put 1 into test[0]
put 2 into test[1]
put 3 into test[2]
put testLoop(test) into test1
answer test1[1]
No matching handler for arguments with types (<type: livecode.lang.string>,<type: livecode.lang.number>,<type: __builtin__.cbool>) - possible handlers (MCArithmeticEvalNumberTimesNumber)