Knowledgebase
Duplicate arguments for a function
Posted by Li Song on 26 April 2011 04:06 PM

Description

Repetitively referring objects as arguments for a function is unsupported. Use the following workaround and example to change it into a supported format.

Workaround

Assign the repetitively referenced object to multiple different variables and pass these variables to a function.

Example

The original script:

w_1.wf_1(dw_1,dw_1) 

Re-write it using the following format:

u_dw ldw_1, ldw_2
ldw_1 = dw_1
ldw_2 = dw_1
w_1.wf_1(ldw_1,ldw_2)

(1 votes)
This article was helpful
This article was not helpful

Comments (0)
Post a new comment 
 

Please login if you wish to leave a comment about this article.

Help Desk Software by Kayako Fusion