Knowledgebase
Reference parameter
Posted by Li Song on 26 April 2011 04:05 PM
Reference parameter

Description

The return values of functions and properties of objects cannot be directly used as reference parameters for functions.

Workaround

Follow the steps below to work around this issue:

 

Step 1 - Create a variable and assign the return value of a function or the property of an object to the variable.

Step 2 - Call the variable where the return value or the property is called in the original code.

Step 3 - Assign the return value of calling the variable to the original property or object.

Code example

//The original code
poptags(theobject.item[theitem])
//After modification
menu lm_menu
lm_menu = theobject.item[theitem]
poptags(lm_menu)

(7 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