ProjectInfo
- Last UpdatedJul 18, 2023
- 1 minute read
Returns information about a particular project, which is identified by a project enumerated number.
Syntax
ProjectInfo(iProject, iType)
iProject:
Project number. This is a sequential number generated by the Compiler starting from 0,1,2,3,4,5.... to 1026, so the maximum include projects are limited to 1027.
iType:
Type of information to return:
0 - Project name
1 - Project description
2 - Project major revision number
3 - Project minor revision number
4 - Project date
5 - Project time
Return Value
The specified project information. An empty string will be returned if the project number or type is invalid
Example
INT hFile;
INT iProjectNumber = 0;
INT iMaxProjects = 1028;
STRING sProjectName;
//Iterate over all projects and write the version numbers to a file
hFile = FileOpen("[Data]:ProjectInfo.txt","a+");
//Iterate of the project numbers and retrieve the project name
WHILE iProjectNumber < iMaxProjects DO
sProjectName = ProjectInfo(iProjectNumber,0);
FileWriteLn(hFile,sProjectName);
iProjectNumber = iProjectNumber + 1;
END
fileClose(hFile);