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> prnfrmnumget() / prnfrmnumset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PrnFrmNumGet() / PrnFrmNumSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the number of the form currently mounted on a printer.

 Syntax:
 iForm = PrnFrmNumGet( wPtrNum)
 iForm = PrnFrmNumSet( wPtrNum, wFormNum )

 Parameters:
 wPtrNum  The printer number ( range 0 to 15 ).
 wFormNum The new form number.

 Returns:
 A numeric value (signed short int).

 Description:
 PrnFrmNumGet() returns the currently mounted form on the specified
 printer wPtrNum on the currently logged into print server.

 PrnFrmNumSet() mounts the new form number wFormNum, on the specified
 printer wPtrNum and returns the previous form number.

 Returns NOVERRINT if an error occurs.

 Example:
 // To log in to print server PRINTERS and display the number
 // of the current mounted form on printer 0:
 if( PSWSLogin( "PRINTERS" ) > 0 )
    ? "The number of the current form on printer 0 is"
    ?? PrnFrmNumGet( 0 )
 endif
 // To change the form mounted on printer 0 to form number 4:
 if( PSWSLogin( "PRINTERS" ) > 0 )
    iOldForm = PrnFrmNumSet( 0, 4 )
    iNewForm = PrnFrmNumGet( 0 )
    ? "The number of the form on printer 0 was ", iOldForm
    ? "The number of the form on printer 0 is  ", iNewForm
 endif

 Notes:
 It is only possible to be logged in to one print server at a time.

See Also: PSWSLogin() PJbNumGet() PrnGetFmNme()

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