CHMlib Logo Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab.
You are reading help file online using chmlib.com
PSCAddAllHolidays

PSCAddAllHolidays function

Adds countries holiday names for the specified date.

function PSCAddAllHolidays(Const ADate: TDateTime; Const ACountries: Array of TPSCCountryID; Const HolidayList: IPSCStrings; DefaultHolidays: Boolean): Boolean;

Unit
psc_calendar

Description
Use PSCAddAllHolidays to modify HolidayList and to add there holiday names for the holidays that occur on the specific date (passed in the Adate parameter). Specify list of the countries in the ACountries parameter. If DefaultHolidays is True, holiday names for the locale default country will be added also. PSCAddAllHolidays returns True if any of the holiday names was added.
Holiday names are retrieved from the internal holidays list.
Example:
var
  TempHolidays:IPSCStrings;
  TempCountries : array of TPSCCountryID;
begin
  TempHolidays := PSCCreateStringList(ioOwned);
  SetLength(TempCountries, 1);

  TempCountries[0] := cPSCCountryArray[29];
    If PSCAddAllHolidays (SysUtils.Date, TempCountries, TempHolidays,False) then
      ShowMessage(TempHolidays.Text)
    else
      ShowMessage('No default holidays are on the current date for the United States');
end;

See also:
PSCCountryNameToID


Generated by Putersoft.FreeHelp. Copyright © 1999-2002. puterSoft.Com
You are reading help file online using chmlib.com


If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com