c :
Ø MinValue Maxvalue. EDatabaseError, , . , 20 30 , Year_b MinValue =1970 Maxvalue =1980.
Ø CustomConstraint, SQL, : (Year_b>1970) and (Year_b<1980). ConstraintErrorMessage , , , , : . .
Ø onValidate. . , .
, onValidate onhange, .
, . Constraints Table. , , Add , CustomConstraint ( SQL, ) ErorMessage ( , ). : > 1955 .. > 1965 ...
, . , , :
Ø Table1. New. Field Properties ( ) :
_ (Name) Age
_ (Type) Smallint;
_ (, ) (Size).
Ø Field Type Calculated.
Ø OK , Age. DisplayLabel .
Ø , Table1, OnCalcFields, , . DecodeDate , TDateTime, , .
|
|
, , , , , , , Now, : Date + Time:
Table : Filter, Filtered, FilterOptions.
Filtered .
Filter , . , Filtered=true Filter :
Ø Dep= 1, , Dep 1
Ø Dep= * , Dep ( foNoPartialCompare FilterOptions false). FilterOptions foNoPartialCompare (=true ) foCaseInsentitive ( , 1 1 ).
Ø =,>,>=,<,<=,<>, and, or, not. :
(Dep= 1) and (Year_b<=1970) and (Year_b>=1940)
1, . (, Age) .
, :
Ø RadioGroup (Name=RGF). RGF->Items : , , , . RGF->ItemIndex==1, RGF->Columns=2, RGF->Caption=
Ø ComboBox (Name=CBDep) , . CBDep->Items .
Ø SpinEdit Samples (Name=SEmin SEmax) . MaxValue, MinValue, Value.
Ø .
Ø :
o RGFClick ( , ),
o OnChange
o ( ).