Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetpspfrm()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETPSPFRM()
 Sets or determines the form for the print server printer
------------------------------------------------------------------------------
 Syntax

     NNETPSPFRM(<cPServer>,<nPrinter>,[<nNewForm>],[<cServer>|
        <nConId>]) --> nForm

     Netware: 2.2 and 3.11

 Arguments

     <cPServer>  Designates the name of the print server that is
     accessed.

     <nPrinter>  Designates the number of the printer on <cPServer>.
     Values between 0 and 15 are possible.

     <nNewForm>  Designates an optional parameter that must be passed to
     set a new form.

     <cServer>  Designates the name of the file server used to access
     <cPServer>.  The print server checks login information on <cServer>.
     Therefore, the access rights can depend on the specified file server.
     Your workstation must be attached to <cServer>.

     <nConId>  Designates the connection ID of your workstation on
     <cServer>.

 Returns

     NNETPSPFRM() returns the form number of <nPrinter> on <cPServer>.  If an
     error occurs, the function returns -1.

 Description

     NOVELL NET PRINT SERVER PRINTER FORM
     NNETPSPFRM() allows you to set or determine the current form of
     <nPrinter> on <cPServer>.  The form number can be queried by users and
     operators; however, operator rights are required to set a new form
     number on <cPServer>.

 Examples

     .  Determine the current form number of printer 0 on print server
        PSERVER:

        IF (nForm:=NNETPSPFRM('PSERVER',0))>=0
           ? 'Form:',nForm
        ELSE
           ? 'Error!'
        ENDIF

     .  Set the form number for printer 0 on print server  PSERVER to
        1:

        IF NNETPSPFRM('PSERVER',0,1)>=0
           ? 'Form number set successfully!'
        ELSE
           ? 'Error!'
        ENDIF

See Also: NNETPSJFRM()

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