|
Previous Top Next |
Prototype: | (Byte pOpenInWindow=True) |
pOpenInWindow | Indicates if the logfile should be opened in a Clarion window or if it should be opened with associated program using ShellExecute. |
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. There is another ShowLogFile method that will always show the error log in a Clarion window which is resizable and stores the window size and location in the standard INIManager class, which is passed to it. 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(True) ! Shows in Clarion window
!ITS.ShowLogFile(False) ! Would use associated program
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: