Get_Current_Output_Channel¶
Include: Use System\FileSystem.pkg
See Also: Direct_Output, Get_Current_Input_Channel, Get_Channel_Position, Sequential Channels
Purpose¶
Returns the active output channel.
Syntax¶
Get_Current_Output_Channel to {ChannelNumber}
The active output channel is set by the last Direct_Output Channel {ChannelNumber} command. Use Seq_New_Channel when opening files in application code; see Sequential Channels.
Example¶
Handle hFile
Integer iChannel
Get Seq_New_Channel to hFile
Direct_Output Channel hFile "test1.txt"
Get_Current_Output_Channel to iChannel
Close_Output Channel hFile
Send Seq_Release_Channel hFile