4. Designing and Writing OpenROAD Server Applications : OpenROAD Parameter Data COM Object : DeclareAttribute Method : LastRow Method
 
Share this page                  
LastRow Method
When a UCARRAY attribute is returned through ByRef from a 4GL procedure it may contain an unknown number of rows. The LastRow method lets you determine the number of rows in the array. This is typically used as a loop control count when iterating through the rows returned:
HRESULT LastRow
    (
        [in] BSTR AttributeName,
        [out, retval] long * RowNumber
    );