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


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


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
//After modification
menu lm_menu
lm_menu = theobject.item[theitem]

(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

Copyright © 2019 Appeon.  All rights reserved.  Terms of Use | Privacy Statement