Count of the number of parameters passed into the custom function.

 

In the topic: Custom Parameters where the Parameter Counting Sequence section describes how parameters of each data-type are sequenced, the details will help to understand the order in which each parameter of a different type is given an index value.

 

Syntax:

value = script.parameterCount

 

Parameter:

Description:

<none>

 

 

Returns:

Count of script created parameters.

 

Example:

'  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'  In the script calling this function
'  of a Mixed Numeric & String Parameter
'  Custom Function
script.Execute("NumericExample", _
               value1, value2, value3, _
               sTestItem )
'  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
'  --------------------------------------------
'  Contained in the Custom Function shown
'  above this is shown.
VARIABLES: n, s TYPE: INTEGER
'  Count the number of numeric parameters
n = script.ParameterCount
'  Count the number of String parameters
s = script.stringParameterCount
 
'  Show parameter value results
Print n, s
'  --------------------------------------------

Results:

  3,1

 

Links:

Script, Script Functions, Script Properties, ParameterList, StringParameterList

See Also:

 


Edit Time: 9/21/2020 3:12:17 PM


Topic ID#: 456

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software