### NextNBusinessDays (#days)

Basic and Crystal syntax.

Note: Currently only Seagate Info supports the Business Calendar, Since Seagate Crystal Reports does not support the Business Calendar, if you are using this function in Seagate Crystal Reports, or if you have not specified a Business Calendar for your Seagate Info system, this function assumes everyday is a business day.

##### Arguments

#days is a positive, whole number indicating the number of business days that you would like to know the dates for if you start counting from today.

##### Returns

An array of dates

##### Action

NextNBusinessDays (x) returns an array of dates, indicating the next x number of business days as of and including the current date, based on the Business Calendar you have specified for your system.

##### Typical Uses

You could pass a number of days to this function, and the function would return an array of dates indicating that number of business days as of the current day (according to the program's business calendar).

##### Examples

The following examples are applicable to both Basic and Crystal syntax:

Assuming the current date is Sept. 24, 1999, which is a Friday, and a Business Calendar specifies no holidays in the rest of September, and only Saturdays and Sundays are non-business days.

`NextNBusinessDays(5)`

Returns an array of 5 dates, including Sept. 24, 27, 28, 29 and 30, 1999.

##### Comments

- (#days) can not exceed either +1000 or -1000.
- This function assumes that a Business Calendar indicating the business days, weekends and holidays to have been set up.

Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com