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)

1
0