|
Previous Top Next |
Prototype: | (INIClass pINIMgr) |
pINIMgr | Global INI Manager class that is used to store window size and position. |
Returns | The method does not return a value |
This method can be called to open and view the error log file generated if the compile process failed. That happens only if the CompileSBProject method returns false. This method shows the file in a Clarion window that will save it's size and position using the standard INI Manager class being passed in the pINIMgr parameter. There is another ShowLogFile method that can show the error log in either a window (which does not store it's size and position) or using the associated program by using ShellExecute. The filename for the error log file is stored in the SBErrorLogFile property.
Example:
R = ITS.CompileSBProject(Loc:SBProjectToCompile)
Case R
Of 1
If Message('The project was compiled successfully. ' &|
'Do you want to view the Build HTML file?',|
'Project compiled successfully',ICON:Exclamation,|
BUTTON:No+BUTTON:Yes,BUTTON:Yes) = BUTTON:Yes
ITS.ShowHTMLLogFile
End
Of 0
If Message('Error occured while compiling the project. ' &|
'Do you want to view the compile log?',|
'Errors occurred',ICON:Hand,|
BUTTON:Yes+BUTTON:No,BUTTON:Yes) = BUTTON:Yes
ITS.ShowLogFile(IniMGR)
End
Of -1
Message('Both SetupBuilder 5 and SetupBuilder 6 are installed ' &|
'on this machine. In that case only SetupBuilder 6.x is ' &|
'supported and a SetupBuilder 5.x project can not be compiled.',|
'SetupBuilder 5 and 6 detected',ICON:Hand)
Of -2
Message('The Command line was too long.',|
'Command Line is too long',ICON:Hand)
End
See also: