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

SetupBuilder Class: ShowHTMLLogFile

Previous  Top  Next  


Prototype: None

 

ReturnsThe method does not return a value.

 

This method uses the OpenURL method of the Shell Class to open the Build Report html file.  The location and name of the Build Report is stored in the SBHtmlLogFile property.  The location is retrieved in the CompileSBProject method and also in the BuildCommandLine method.

 

Example:

 

R =  ITS.CompileSBProject(Loc:SBProjectToCompile)

ITS.ODS('Return value: ' & R)

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:

BuildCommandLine

CompileSBProject

SBHtmlLogFile

Shell Class

 

 

 



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