stdDataFormats Object (VB6)

Description

Contains a collection of stdDataFormat objects. For an overview of the data format object model, including the library reference needed to access it, see the Data Format Objects entry.

Createable

Yes

stdDataFormats Properties

Count

Data Type: Long

The number of stdDataFormat objects held in the collection.

Item

Data Type: stdDataFormat Object

Allows access to individual stdDataFormat objects in the collection. You can use either the For...Each...Next statement or the item's key to specify a member of the collection. For example:

Set oFormat = oStdDataFormats.Item("bool")

Since the Item property is the stdDataFormat object's default property, you call it implicitly like this:

Set oFormat = oStdDataFormats("bool")

stdDataFormats Methods

Add

Adds a stdDataFormat object along with its optional variant key to the collection. For example:

oStdDataFormats.Add oFormat, "bool"

Clear

Removes all stdDataFormat objects from the collection.

Remove

Removes a particular stdDataFormat object from the collection. For example:

oStdDataFormats.Remove "bool"

Get VB & VBA in a Nutshell: The Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.