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> capfmfdget() / capfmfdset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CapFmFdGet() / CapFmFdSet()
------------------------------------------------------------------------------
 Purpose:
 Enable / disable form feed after capture.

 Syntax:
 bFlag = CapFmFdGet( iLPTNum )
 bFlag = CapFmFdSet( iLPTNum, bNewFlag )

 Parameters:
 iLPTNum  The LPT device. 1=LPT1: 2=LPT2: 3=LPT3:
 bNewFlag The enable/disable form feed flag.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 CapFmFdGet() returns TRUE if the form feed flag is set, or FALSE if
 the flag is not set or an error occurs.

 CapFmFdSet() is used to set, using bNewFlag,  whether a form feed
 should be sent to the specified LPT device iLPTNum after the print job has
 printed. CapFmFdSet() also returns the previous setting.

 Example:
 // To return the current state of the form feed flag on LPT2:

 FeedFlag = CapFmFdGet( 2 )
 if ( NWErrorGet() = 0 )
    ? "The automatic form feeds flag for LPT2: is ", FeedFlag
 endif

 // To disable the automatic form feed after print jobs on LPT1:

 CapFmFdSet( 1, FALSE )
 if ( NWErrorGet() = 0 )
    ? "Automatic form feeds on LPT1: have been disabled"
 endif

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

See Also: CapFrmNmeGet() / CapFrmNmeSet() CapFrmNumGet() / CapFrmNumSet()

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