RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLTransform.BeforeEachRowSet Event

Occurs immediately before TXMLTransform starts transforming the entire XML data packet or a nested detail set.

Pascal
property BeforeEachRowSet: TRowEvent;
C++
__property TRowEvent BeforeEachRowSet;

Write an BeforeEachRowSet event handler to take specific action before the XML transform component starts translating a dataset. This can be a nested detail set, or the entire XML data packet.  

For example, you can use BeforeEachRowSet with the AfterEachRowSet and OnTranslate methods to compute summary values: initialize a variable in the BeforeEachRowSet method, update it for every OnTranslate event, and use the result in the AfterEachRowSet event. 

 

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