# Syntax Error - RS Online

**URL:** <https://tech-community.robotics.abb.com/t/syntax-error-rs-online/906>\
**Category:** RobotStudio\
**Created:** [October 26, 2006, 7:49am UTC](https://tech-community.robotics.abb.com/t/syntax-error-rs-online/906 "2006-10-26T07:49:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhaglund](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jhaglund](https://tech-community.robotics.abb.com/u/jhaglund)\
**Post date:** [October 26, 2006, 7:49am UTC](https://tech-community.robotics.abb.com/t/syntax-error-rs-online/906/1 "2006-10-26T07:49:05Z")

</div>

I was trying to pass an array of robtargets to a procedure, but I was getting a syntax error from the program editor when passing multiple arguments. To simplify this, I tried the following example from Section 22.4 Routine Declarations of the Rapid Overview manual:

%%%  
VERSION: 1  
LANGUAGE: ENGLISH  
%%%

MODULE Module1  
VAR num globalarray{9}:=[1,2,3,4,5,6,7,8,9];

PROC arrmul(VAR num array{\*},num factor)  
FOR index FROM 1 TO dim(array,1) Do  
array{index}:=array{index}\*factor;  
ENDFOR  
ENDPROC  
PROC main()  
arrmul(globalarray,5);  
ENDPROC

ENDMODULE

When applying the changes, RS Online gave the following error messages:

/T\_ROB1/Module1/(14):Error 40135:Syntax error.:Expected ')

/T\_ROB1/Module1/(14):Error 40136:Syntax error: Unexpected ‘)’

I have tried a variety of variable declarations with no change in the results. I am using RS 5.7.1834.1023 and RS Online 5.7.1025.0

Any help would allow me to keep my remaining strands of hair.

Thanks,

---

<div class="post-metadata">

**Author:** ![Johannes\_Weiman\_old\_account](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/johannes_weiman_old_account/32/3345_2.png) [@Johannes\_Weiman\_old\_account](https://tech-community.robotics.abb.com/u/Johannes_Weiman_old_account)\
**Post date:** [October 26, 2006, 9:17am UTC](https://tech-community.robotics.abb.com/t/syntax-error-rs-online/906/2 "2006-10-26T09:17:55Z")

</div>

Hi Jim,

It’s your procedure call that is incorrect; procedures don’t use parentheses:

PROC main()  
arrmul globalarray,5;  
ENDPROC

---

<div class="post-metadata">

**Author:** ![jhaglund](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jhaglund](https://tech-community.robotics.abb.com/u/jhaglund)\
**Post date:** [October 27, 2006, 7:59am UTC](https://tech-community.robotics.abb.com/t/syntax-error-rs-online/906/3 "2006-10-27T07:59:30Z")

</div>

Thanks, that was it. I figured it was something simple, but I sure couldn’t see it.
