GetIndexedObjNameDFR
GetIndexedObjNameDFR (dfr, objectType, index )
The GetIndexedObjNameDFR function returns a string containing the name of the indexth object of the specified type in data folder referenced by dfr.
GetIndexedObjNameDFR is the same as GetIndexedObjName except the first parameter,dfr, is a data folder reference instead of a string containing a path.
Parameters
index starts from zero. If no such object exists a zero length string ("") is returned.
objectType is one of the following values:
| 1: | Waves | |
| 2: | Numeric variables | |
| 3: | String variables | |
| 4: | Data folders | |
Examples
Function PrintAllWaveNames()
String objName
Variable index = 0
DFREF dfr = GetDataFolderDFR() // Reference to current data folder
do
objName = GetIndexedObjNameDFR(dfr, 1, index)
if (strlen(objName) == 0)
break
endif
Print objName
index += 1
while(1)
End
See Also
Data Folders, Data Folder References, Built-in DFREF Functions, CountObjectsDFR