JVCL Help:TJvCsvDataSet.UserData

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

Search in JVCL Help

 
Search in all projects
 

Summary

A user-defined Pointer property for the currently active row in the dataset.


Pascal

 propertyUserData: Pointer;


Description

The current row of the dataset can have a special user-data 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.UserData := Pointer(MyObject) // Flag XYX rows.
else
MyCsvDataSet.UserData := nil;
MyCsvDataSet.Next;
end;
UserTag: same idea as UserData, but instead of a pointer, it's an integer.


See Also

TJvCustomCsvDataSet.UserTag


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