JVCL Help:TJvCsvDataSet.UserTag
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: TJvCsvDataSet.UserTag Property
[+] TJvCsvDataSet Events
[+] TJvCsvDataSet Properties
Search in JVCL Help
Search in all projectsSummary
A user-defined Integer property for the currently active row in the dataset.
Pascal
propertyUserTag: Integer;
Description
The current row of the dataset can have a special user-tag property, per row. This is helpful if you want to go through a dataset, and flag certain rows as 'selected', and for other user-defined purposes. This data is NOT stored as part of the CSV file and exists only in memory.
Examples
MyCsvDataSet.First;
whilenot MyCsvDataSet.Eof dobegin
if MyCsvDataSetMYFIELD.Value='XYZ' then
MyCsvDataSet.UserTag := 1; // Flag XYX rows.
else
MyCsvDataSet.UserTag := 0;
MyCsvDataSet.Next;
end;
UserData: Same idea as UserTag, but it's a pointer.
See Also
TJvCustomCsvDataSet.UserData
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