Delphi-Help

  • Увеличить размер шрифта
  • Default font size
  • Уменьшить размер шрифта

Как проверить, существует ли дата?

Оценить
(0 голоса)

Как проверить, существует ли дата?

function DateExists(Date: string; Separator: char): Boolean;
var
  OldDateSeparator: Char;
begin
  Result := True;
  OldDateSeparator := DateSeparator;
  DateSeparator := Separator;
  try
    try
      StrToDate(Date);
    except
      Result := False;
    end;
  finally
    DateSeparator := OldDateSeparator;
  end;
end;
 
procedure TForm1.FormCreate(Sender: TObject);
begin
  if DateExists('35.3.2001', '.') then
  begin
    {Ваш код}
  end;
end;

1 Комментарий

  • Ссылка на комментарий abilify26.04.2011 19:29 Написал: abilify

    http://www.esdg.edu.pt/moodle/user/view.php?id=4424&course=1 effexor abilify interaction abilify generic cheap http://moodle.sacredsf.org/user/view.php?id=3390&course=1 abilify canadian pharmacy abilify and aleve http://erzieherinnenausbildung-berlin.de/FOS/moodle/user/view.php?id=711&course=1 wholesale abilify buying abilify online http://tupulo.moodle.dcu.ie/user/view.php?id=1171&course=1 zyprexa abilify diabetes abilify provigil effexor saved http://www.breathingspacearts.co.uk/elgg/pg/profile/silksite robitussin and abilify abilify energy tardive dyskinesia http://oku.edu.mie-u.ac.jp/m16/user/view.php?id=415&course=1 tardive dyskinesia risperdal abilify abilify binge drinking http://www.bucketshare.com/pg/profile/lunchmaringvu similar to abilify atypical antipsychotic abilify mechanism of action approved http://www.bibospace.com/pg/profile/zestdenvioutoi abilify and lactose intolerance side effects from abilify http://fpsi.atmajaya.ac.id/moodle/user/view.php?id=33961&course=1 abilify and side effects alcohol abilfy abilify http://comict.ycampus.net/user/view.php?id=15948&course=1 webkinz abilify strattera and abilify http://bassbook.us/bassbook-social/pg/profile/phipersfon abilify and problems abilify im bipolar mania http://www.bcdodge.me/egllsys/pg/profile/ameratmas lamictal or abilify taking abilify paroxetine http://www.buscador3d.net/compliciudad/pg/profile/lacsuphagutf abilify cheapest pregnant abilify http://moodle.reu.pub.ro/user/view.php?id=359&course=1 abilify time to work abilify for cheap http://instructio.com/lms/user/view.php?id=2637&course=1 abilify high doses abilify and tachycardia

Написать комментарий

Счетчики