Returns a two-dimensional array of the metadata extract options that can be passed to Extract. The array includes the options’ names and default values. For some options, the array also identifies the valid range of values.
<HsvMetadata>.EnumExtractOptions pvar2daOptions
Variant array. Returns a two-dimensional safe array that represents the metadata extract options. The first dimension identifies the options, and is indexed from 1 to 19. The indexes and corresponding extract options are listed in Table 57, Metadata Extract Options. The second dimension provides information on options, and is indexed from 0 to 5: For example, since the delimiter option is the twelfth item in the first dimension, array item (12,2) stores the system’s default delimiter. |
The following example defines a function named getMetadataExtractDefaults that returns an array of the default extract option values. This function loops through the array returned by EnumExtractOptions, assigning each option’s default value to the vaMetaSettings array. vaMetaSettings is then assigned as the function’s return value.
Function getMetadataExtractDefaults() As Variant Dim vaOpts As Variant, vaMetaSettings(1 To 19) As Variant 'g_cMetadata is an HsvMetadata object reference g_cMetadata.EnumExtractOptions vaOpts 'Assign the default values, which are stored in 'item # 2 of the second dimension of vaOpts. For i = LBound(vaOpts) To UBound(vaOpts) vaMetaSettings(i) = vaOpts(i, 2) Next i getMetadataExtractDefaults = vaMetaSettings End Function
This function is used in the Example for Extract. |