# How to pass array arg to Function

**URL:** <https://tech-community.robotics.abb.com/t/how-to-pass-array-arg-to-function/2762>\
**Category:** RobotStudio\
**Created:** [May 14, 2009, 6:04am UTC](https://tech-community.robotics.abb.com/t/how-to-pass-array-arg-to-function/2762 "2009-05-14T06:04:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lin](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/lin/32/2104_2.png) [@Lin](https://tech-community.robotics.abb.com/u/Lin)\
**Post date:** [May 14, 2009, 6:04am UTC](https://tech-community.robotics.abb.com/t/how-to-pass-array-arg-to-function/2762/1 "2009-05-14T06:04:43Z")

</div>

I have on array A{1,1,5}

I would like to pass this array as a argument to my function.

FUNC … Name(num b{1,1,7})  
…  
ENDFUNC

Is this possible? If you know the answer, please help me.

Thank you.

---

<div class="post-metadata">

**Author:** ![Robot\_killer](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@Robot\_killer](https://tech-community.robotics.abb.com/u/Robot_killer)\
**Post date:** [May 14, 2009, 9:49pm UTC](https://tech-community.robotics.abb.com/t/how-to-pass-array-arg-to-function/2762/2 "2009-05-14T21:49:11Z")

</div>

hi

i not sure but try  
FUNC … Name(num b{_,_,\*})  
…  
ENDFUNC

---

<div class="post-metadata">

**Author:** ![Robot\_killer](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@Robot\_killer](https://tech-community.robotics.abb.com/u/Robot_killer)\
**Post date:** [May 14, 2009, 9:54pm UTC](https://tech-community.robotics.abb.com/t/how-to-pass-array-arg-to-function/2762/3 "2009-05-14T21:54:40Z")

</div>

hi again

i found info in rapid overview  
for procedure

PROC arrmul( VAR num array{\*}, num factor)

FOR index FROM 1 TO dim( array, 1 ) DO

array{index} := array{index} \* factor;

ENDFOR

ENDPROC
