4 showinbrowser(), Rowser – Teledyne LeCroy Verification Script Engine for Teledyne LeCroy PETracer Reference Manual User Manual
Page 73
Teledyne LeCroy
Verification Script Engine Reference Manual
Version 6.6x
68
17.4 ShowInBrowser()
This function allows you to open a file in the Windows
®
Explorer. If the extension of the file has the
application registered to open files with such extensions, it is launched. For instance, if Internet Explorer is
registered to open files with extensions *.htm and the file handle passed to ShowInBrowser() function belongs to
a file with such an extension,this file is opened in the Internet Explorer.
Format:
ShowInBrowser ( file_handle )
Parameters:
file_handle
File “handle”
Example:
…
set html_file = 0;
…
html_file = OpenFile( “D:\\Log.htm” );
…
WriteString( html_file, “<html><head><title>LOG</title></head>” );
WriteString( html_file, “<body>” );
…
WriteString( html_file, “</body></html>” );
ShowInBrowser( html_file ); # opens the file in Internet Explorer
CloseFile( html_file );
…