www.icetips.com  Icetips Utilities Documentation 11/30/2010    

SetupBuilder Class: ShowLogFile - ShellExecute

Previous  Top  Next  


Prototype: (Byte pOpenInWindow=True)

 

pOpenInWindowIndicates if the logfile should be opened in a Clarion window or if it should be opened with associated program using ShellExecute.

 

ReturnsThe 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:

CompileSBProject

SBErrorLogFile

ShowLogFile - Window

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/showlogfile_2_setupbuilder.htm