Einzelnen Beitrag anzeigen

hboy

Registriert seit: 16. Jan 2004
364 Beiträge
 
#5

Re: Monatskürzel "Jan".."Dec" in 01..12

  Alt 2. Feb 2004, 15:43
bzw

Delphi-Quellcode:
function monthbystr(s: string): integer;
const
  months = ' JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC';
begin
  result := Pos(Uppercase(s),months) shr 2;
end;
Power is nothing without TControl
  Mit Zitat antworten Zitat