Navigation: Scripting Reference Manual > Functions & Subroutines > SetTextFileOff

 

SetTextFileOff

 

Contact Us: fredsupport@photonengr.com

 

Description

Stops printing the contents of the output window to a file.

 

Syntax

SetTextFileOff

 

Parameters

None

 

Example

The following example specifies a text file and redirects output to both the output window and the text file.

 

Sub Main

 

    Dim fName As String

    fName = "C:\temp\textOutput.txt"

 

    SetTextFile fName, False

    Print "This"

    Print "is"

    Print "some"

    Print "text"

    Print "4 + 4 = " & 4+4

    SetTextFileOff

 

End Sub

 

See Also

FindTextString

SetTextFile

SetTextFileAppend

 

 

 

 

 

 

Copyright © Photon Engineering, LLC