📚 SAP Business One SDK Help

GetIndexRate Method
See Also 
Index
Specifies the index code.
Date
Specifies the reference date.

Description

Returns a Recordset object that contains the index rate for a specified date and index code.

See Get Index Rate sample.

Syntax

Visual Basic
Public Function GetIndexRate( _
   ByVal Index As String, _
   ByVal Date As Date _
) As Recordset

Parameters

Index
Specifies the index code.
Date
Specifies the reference date.

Return Type

A Recordset object that contains one field named IndexRate that holds the index rate value.

If the index does not exists, the system returns 0.

Exceptions

-2000 The connection with database has been disconnected.

Remarks

SAP Business One supports multiple index rates. You can use these indexes in reporting sheet to help users to analyze business data.

Example

See Also