Back to Index

 

 

Job Component

     GetParameters method

 

GetParameters()

     Returns:  CRParametersCollection  (which contains a collection of CRParameter objects)

 

The GetParameters method reads the parameter file into a collection of CRParameter objects which you can use to check the current value of a parameter, or display the value of the parameter to the user.

Example:

[Visual Basic .NET]

Dim pColl As ExportBudget.CRParametersCollection

Dim param As ExportBudget.CRParameter

 

pColl = myExportBudgetJob.GetParameters()

 

If Not (pColl Is Nothing) Then

     For Each param In pColl

          If param.pName = "CUSTOMERID" Then

               MsgBox("Customer = " + param.pValue)

          End If

     Next

End If

 

 

[C#]

ExportBudget.CRParametersCollection pColl;

 

pColl = myExportBudgetJob.GetParameters();

 

if (pColl != null)

{

     foreach(ExportBudget.CRParameter param in pColl)

     {

          if (param.pName == "CUSTOMERID")

         {

               MessageBox.Show("Customer = " + param.pValue);

          }

     }

}

 


© 2003 - 2007 Relational Solutions, Inc. - All rights reserved