RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetNext Class

TDataSetNext moves a target dataset to its next record.

Pascal
TDataSetNext = class(TDataSetAction);
C++
class TDataSetNext : public TDataSetAction;

DBActns

Add TDataSetNext to an action list to allow users to navigate to the next record in a dataset. Controls such as menu items and tool buttons linked to this action cause the target dataset to move to the last record. 

TDataSetNext is designed to work with a TDataSource component as its target. You can explicitly provide this target by setting the DataSource property, or you can allow the action to infer the data source from an active data-aware control. TDataSetNext automatically disables itself if it does not have a target data source attached to an active dataset. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!