Difference between revisions of "SetParameters"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
 
Line 1: Line 1:
[[Category:HelpBooks]]
+
[[Category:Resource_Functions]]
 

 

  

Revision as of 06:08, 23 March 2011



setParameters

Sets the parameters of a resource.

Syntax

setParameters(resourceUniqueId, parameters_options)

Arguments

resourceUniqueId: Is a numeric (non-decimal) expression. It is the UniqueId of a resource.

parameters_options: Is an array whose items are the ids of the last chosen parameter options of a parameter family

Return type

empty

Examples

/* set parameters for a resource having UniqueId = 123456

This resource has 3 parameters whose corresponding options’ ids are 1, 12 and 25

*/

setParameters(123456, {1, 12, 25});

Availability

Version 4.8