home *** CD-ROM | disk | FTP | other *** search
- {*
- * TvType.pas
- *
- * Enhancements to Turbo Vision type definitions.
- *
- * Copyright 1992 by Richard W. Hansen
- *
- *}
-
- UNIT TvType;
- {$X+}
- {$V-}
-
- {$I TVDEFS.INC}
-
- INTERFACE
-
- USES
- Dos,
- Objects;
-
-
- CONST
- DateSlash = '/';
-
-
- TYPE
- FrameArray = Array[1..8] of Char;
-
-
- PostEditFunc = Function(P : Pointer; ID : Word): Boolean;
-
-
- TCharBuf = Array[0..$FFE0] of Char;
- PCharBuf = ^TCharBuf;
-
-
- TByteBuf = Array[0..$FFE0] of Byte;
- PByteBuf = ^TByteBuf;
-
-
- TCharSet = Set of Char;
-
-
- THexLong = record
- Low, High : Word;
- end;
-
-
- TDateSt = String[15];
-
- PDate = ^TDate;
- TDate = Object(TObject)
- Day : Byte;
- Month : Byte;
- Year : Word;
-
- Procedure SetDate(D : Byte;
- M : Byte;
- Y : Word);
- Procedure SetDay(D : Byte);
- Procedure SetMonth(M : Byte);
- Procedure SetYear(Y : Word);
- Procedure SetToday;
- Function ValidDate: Boolean;
- Function DateString(Picture : TDateSt): TDateSt;
- Procedure ExtractDate(Picture : TDateSt;
- ADateSt : TDateSt);
- Function Compare(var ADate : PDate): Integer;
- end;
-
-