Routines (alphabetical) > Routines: H > HDF Routines > HDF_VG_GETID

# HDF_VG_GETID

The HDF_VG_GETID function returns the VGroup ID for the next VGroup after the specified VGroup_id in an HDF file. Use a VGroup_id of -1 to get the first VGroup in the file.

## Examples

See HDF_SD_IDTOREF for an example using this function.

## Syntax

Result = HDF_VG_GETID(FileHandle, VGroup_id)

## Return Value

Returns the next VGroup ID.

## Arguments

### FileHandle

The HDF file handle returned from a previous call to HDF_OPEN.

### VGroup_id

The VGroup reference number, generally obtained by HDF_VG_GETID or HDF_VG_LONE.

## Keywords

None

## Version History

4.0 | Introduced