Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> capautoendget() / capautoendset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CapAutoEndGet() / CapAutoEndSet()
------------------------------------------------------------------------------
 Purpose:
 Get or set the capture auto end flag.

 Syntax:
 bFlag = CapAutoEndGet( iLPTNum )
 bFlag = CapAutoEndSet( iLPTNum, bNewFlag )

 Parameters:
 iLPTNum  The LPT device. 1=LPT1: 2=LPT2: 3=LPT3:
 bNewFlag The auto endcap on/off flag.

 Returns:
 A boolean value (TRUE or FALSE).

 The CA-Clipper names for these functions:
 CapAutEndGet() / CapAutEndSet()

 Description:
 CapAutoEndGet() returns the capture auto end flag, which determines when
 data from the program is sent to the network print queue.

 CapAutoEndSet() sets the capture auto end flag to the value specified by
 bNewFlag for the specified LPT device iLPTNum and returns the previous
 setting.

 If set to FALSE, data is only sent to the print queue when you call
 CapFlush(), CapEnd() or exit the program. If set to TRUE (the usual value
 set up by the Supervisor), the data will be sent to the print queue when
 there has been no activity on that printer port for the period of time set
 by the CapTimeOutSet() function.

 If CapAutoEndSet() is explicitly enabled CapTimeOutSet() should be set to
 15 or 30 seconds to ensure that output is not split into multiple jobs.

 Example:
 // To turn off capture auto end for LPT1:
 bPreviousFlag = CapAutoEndSet( 1, FALSE )
 if ( NWErrorGet() = 0 )
    ? "Capture auto end has been switched off for LPT1:"
 endif

 Notes:
 If FALSE is returned, check NWErrorGet().

See Also: CapTimeOutGet() / CapTimeOutSet()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson