1. The FileName attribute
Explanation: what is used to specify the operating data file path (extension name format CDS or DB)
Case:
CDataSet1. FileName:='C: \ test. CDS';//specify the original data
CDataSet1. Active:=true;//display data
2. SaveToFile
Description: used for copy
Case:
CDataSet1. SaveToFile (' C: \ test1. CDS ')//the data collection of data stored in the specified file
3. The First (the First), the Prior (forward), Next (backward), the Last (to finish), Edit (editor), CanCel (CanCel editing), Post (save), Insert (Insert record), Append (add), Delete (Delete), Refresh (data Refresh) data sets are commonly used methods, such as
Description: when specifying the FileName attribute, the Post method may deposit the data with the specified file, similar to its SaveToFile method; If you do not specify a storage file name, then Post method will only the data stored in RAM, and other methods, with general control method using data sets, slightly,
4. The Filter Filtered: Filter attribute description: used to screen the record specified conditions, with usage data set general controls, slightly,
Case: in the screening of sex for male have activated the open data set records
CDataSet. Close;
CDataSet. Filter: gender==' ' ' '+' male '+' ' ' '
CDataSet. Filtered:=True;
CDataSet. Open;