Passa al contenuto principale

CalcDueDate

Structure

CalcDueDate(iFreq : Integer; sInterval : String; dLastEvent : TDate);

Type

Function

Description

This function calculates a Due Date based upon a Frequency, Interval, and Last Event Date. Note: the value that is returned is actually a float value - but declared like a TDate variable.

Parameters: 3

iFreq = Integer specifying the Frequency of the Event

sInterval = String specifying DAYS, WEEKS, MONTHS, or YEARS

dLastEvent = Date of Last Event

Example

dDue := CalcDueDate(6,'MONTHS','2/15/2016') |