MENU
    GetAllCurrencyTypes API
    • 1 Minute to read
    • Dark
    • PDF

    GetAllCurrencyTypes API

    • Dark
    • PDF

    Article summary

    Retrieves the collection of currency type objects. Each currency type object returned from this method corresponds to a data row of currency type in the database.

    Syntax

    CurrencyType = api.GetAllCurrencyTypes()
    Shell

    Usage

    Use the GetAllCurrencyTypes call to retrieve currency type data. Upon invocation, the Web Service queries the database for currency type data rows and returns the collection of currency type objects. Each currency type object corresponds to a data row in the database.

    The Client application can then use methods on the collection of currency type objects to iterate through the collection and retrieve information. The Client application must be logged in with sufficient access rights to query currency type objects.

    Response

    CurrencyType()

    The GetAllCurrencyTypes method call returns collection of CurrencyType objects which contain the data values of currency type data rows in the database.

    Sample Code

    Private Sub getAllCurrencyTypes()
    Dim api As New HostAPI()
    Dim objCurrencyType() As CurrencyType
    Try
    'Call the web method to retrieve the list of currency types
    		objCurrencyType = api.getALLCurrencyTypes()
    'Loop through the currency type collection objects to display the currency types retrieved
    If Not objCurrencyType Is Nothing Then
    			Console.WriteLine("Code" & vbTab & "|Name")
    For Each _Obj As CurrencyType in objCurrencyType
    				Console.WriteLine(_Obj.Code & vbTab & "|" & _Obj.Name)
    Next
    End If
    Catch ex As Exception
    End Try
    End Sub
    Shell

    Was this article helpful?