The HDF_DFP_LASTREF function returns the reference number of the most recently read or written palette in a Hierarchical Data Format file.
Result = HDF_DFP_LASTREF()