![]() |
![]() |
[ Bottom of Page | Previous Page | Next Page | Contents | Index ]
The following methods help you to express functions for parameters configuration.
Object.GetNumParameterCount(ParamName As String) As Long
This method retrieves the number of items of string, Boolean, and choice list types. For the string lists, the returned value is the number of elements. For the Boolean lists, the returned value is the number of elements set to true. For the choice lists, the returned value is 1.
Object.GetStrParameterCount(ParamName As String)_ As Long
Object.GetNumParameter(ParamName As String,_ idx As Long) As Double
This method retrieves the values of string, Boolean, and choice list types. For the string lists, the returned values are the element value. For the Boolean lists, the returned values are the values of the elements set to true. For the choice lists, the returned value is the selected value.
Object.GetStrParameter(ParamName As String, idx As Long) As String
Visual Basic example: | |
Dim numVal As Double Dim strVal As String Dim paramCount As Long paramCount = Svc.GetNumParameterCount("NumParam") For i = 0 To paramCount - 1 numVal = Svc.GetNumParameter("NumParam", i)) Next paramCount = Svc.GetStrParameterCount("StrParam") For i = 0 To paramCount - 1 strVal = Svc.GetStrParameter("StrParam", i)) Next |
|
JavaScript example: | |
var numVal; var strVal; var paramCount; paramCount = Svc.GetNumParameterCount("NumParam"); for(i = 0; i < paramCount; i++) { numVal = Svc.GetNumParameter("NumParam", i); } paramCount = Svc.GetStrParameterCount("StrParam"); for(i = 0; i < paramCount; i++) { strVal = Svc.GetStrParameter("StrParam", i); } |
[ Top of Page | Previous Page | Next Page | Contents | Index ]