JVCL Help:TJvCustomCsvDataSet.CsvKeyDef

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Primary Key Definition.


Pascal

 propertyCsvKeyDef: string;


Description

Blank means no primary key. The main reason for setting a primary key is so you can enforce primary key uniqueness. You might also want to easily sort the file in primary key order. Primary Key fields MUST Be the first fields logically (and usually, physically) in the CSV file. That is to say, the CsvKeyDef cannot be set to 'A,C' if the first line of the csv file is is 'A,B,C'. If you want fields 'A,C' to be the key, the CSV file fields themselves MUST be ordered 'A,C, .... ' logically.


See Also

TJvCustomCsvDataSet.CsvUniqueKeys, TJvCustomCsvDataSet.CaseInsensitive, TJvCustomCsvDataSet.FindByCsvKey, TJvCustomCsvDataSet.IsKeyUnique


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page