DecodeParms

These notes are written for the benefit of customers who want more control over a MenuItem tag for a parameterized page.

Description:

Takes a string of page parameters for a MenuItem tag and returns the values assigned for those parameters.

Returns: Array
Usage: Script Only.
Function Groups: Graphics
Related to: ShowPage
Format:

\MenuManager.DecodeParms(Data, Reserved)

Parameters:  
Data

Required text. A string of parameters to decode.

You can obtain this automatically via TagObj.Parameters, where TagObj is the MenuItem tag you are examining.

Reserved

Boolean. Set to TRUE to return an array of parameter values.

Comments:

If you know which MenuItem tag you want to get the parameters from, use the following to get an array of its parameter values:

Parameters = \MenuManager.DecodeParms(TagObj.Parameters, TRUE);

You must always pass TRUE into the second parameter.

The name of the page to go with those parameters can be found in: TagObj.CodeReference