PreviousActiveX Controls Guide (v10) Next

GetTotalSegments

Chapter contents

Applies to:

VAccess

Description

Returns the total number of segments contained in the specified index of the file associated with the VAccess control.

GetTotalSegments has been maintained for backwards compatibility. Index properties can usually be more quickly and easily manipulated using the IndexList property.

Syntax

object.GetTotalSegments(keynumber) 

The GetTotalSegments method syntax has these parts:

Part
Description
object
Required. The object placeholder represents an object expression that evaluates to an object in the Applies To list.
keynumber
Required. Contains the index number to be checked.

Example

NumSegments% = _ 
VAccess1.GetTotalSegments(VAccess1.KeyNumber) 

Chapter contents
Book contents

Prev topic: GetTableList
Next topic: Init