Indy 9
StrToDay
Unit: IdGlobal
Returns the day number for a short day name.
function StrToDay(const ADay: string): Byte;
Unit
IdGlobal
Parameters
const ADay: string
The 3-character day of week name.
Return Value
Byte - The day of week, or -1 if the day name is not valid.
Description
StrToDay is a Byte function used to calculate the day of week for the short day name in ADay. StrToDay will return -1 when ADay is not a valid day name.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.