GetRowIndexByDate

Description

Given a slot with rows indexed by date, this function returns the 0-based

index corresponding to a given date.

Type

NUMERIC

Arguments

Type

Meaning

1

SLOT

the slot in which to find a row

2

DATETIME

date of the row to match

Comments

The value -1 is returned if the given date is not within the date range of the slot.

This function is applicable to the following types of slot:

  • Series Slots
  • Table Series Slots
  • Periodic Slot

It is considered an error if the slot is not indexed by date (i.e, not one of these types).

 
GetRowIndexByDate(DeepReservoir.Inflow,@"t")
 
5.00000