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> capfrmnmeget() / capfrmnmeset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CapFrmNmeGet() / CapFrmNmeSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the capture form name.

 Syntax:
 lpszName = CapFrmNmeGet( iLPTNum )
 lpszName = CapFrmNmeSet( iLPTNum, lpszNewName )

 Parameters:
 iLPTNum     The LPT device. 1=LPT1: 2=LPT2: 3=LPT3:
 lpszNewName The new form name.

 Returns:
 A character string of length 13.

 Description:
 CapFrmNmeGet() returns the name of the form used for printing jobs on
 the specified LPT device iLPTNum.

 CapFrmNmeSet() sets the form name to the string specified by lpszNewName
 on the specified LPT device iLPTNum and returns the previous form name.
 When a form name is set, the change only takes effect after CapStart() is
 called.

 Returns an empty string if there is no form name set, or if an error
 occurs.

 Example:
 // To display the form name used for printing the data captured from LPT1:
 lpszFormname = CapFrmNmeGet( 1 )
 if ( NWErrorGet() = 0 )
    ? "The form name for LPT1: is ", lpszFormname
 endif
 // To change the name of the form used for printing the data captured
 // from LPT1: to "LETTERHEAD":
 lpszOldForm = CapFrmNmeSet( 1, "LETTERHEAD" )
 lpszNewForm = CapFrmNmeGet( 1 )
 if ( NWErrorGet() = 0 )
    ? "The form name for LPT1: was ", lpszOldForm
    ? "The form name for LPT1: is now", lpszNewForm
 endif

 Notes:
 If an empty string is returned, check NWErrorGet().

See Also: CapFrmNumGet() / CapFrmNumSet()

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