Chapter 8 Utility Library
© National Instruments Corporation 8-33 LabWindows/CVI Standard Libraries
GetNextFile
int result = GetNextFile (char fileName[]);
Purpose
Gets the next file found in the search starting with GetFirstFile.
Parameters
Output fileName string Next file found.
Return Value
result integer Result of search.
Return Codes
0 Success.
-1 No more files found matching criteria.
-2 GetFirstFile must initiate search.
Parameter Discussion
fileName will contain the basename and extension of the next matching file and must be at least
MAX_FILENAME_LEN characters in length.
GetPersistentVariable
void GetPersistentVariable (int *value);
Purpose
Returns the value set by SetPersistentVariable. However, if you unloaded the project
since you last called SetPersistentVariable, zero is returned.
In a standalone executable, zero is returned if you have not called SetPersistentVariable
since the start of execution.
Parameters
Output value integer The current value of the persistent variable.