[ HDF5 High Level Tutorial Top ] [ Next ] [ Prev ]

H5TB: HDF5 Table
Tables

Insert a new field into a table

A new field can be inserted into a table. We use the function H5TBinsert_field. To use this function we have to supply the field name, its type, the position where to insert the field and the dada to insert in the table. The following call inserts a field called "New Field" into the table named "Table1".

H5TBinsert_field( file_id, "Table1", "New Field", field_type, position, fill_data, data); 

Programming Example

The following C program provides an example. The corresponding HDF5 file that is generated is also referenced here. You can use an HDF5 file browser to access this file by clicking on the link below.

NOTE: To download a tar file of all of the examples, including a Makefile, please go to the Index page.


HDF Help Desk
Last modified: November 18, 2002