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>nnetsndall()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETSNDALL()
 Sends a message to all users on a file server
------------------------------------------------------------------------------
 Syntax

     NNETSNDALL(<cMessage>,[<lNoSender>],
        [<cServer>|<nConId>]) --> nNumber

     Netware: 2.2 and 3.11

 Arguments

     <cMessage>  Designates the message that is sent to all users.  The
     message can be up to 55 characters long (including information about the
     sender) and can only contain characters that have an ASCII value between
     32 and 127.

     <lNoSender>  Designates an optional parameter that allows you to
     suppress the sender information (from ...) when designated as (.T.).
     When this parameter is designated as .F., the sender information is
     generated automatically.

     <cServer>  Designates the name of the file server through which the
     message is sent.  Your workstation must be attached to <cServer>.

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

 Returns

     NNETSNDALL() returns the number of stations to which the message has
     been sent successfully.  The function returns 0 if no users are logged
     in.

 Description

     NOVELL NET SEND GROUP
     NNETSNDGRP() allows you to send a message (<cMessage>) of up to 55
     characters to all users (<cName>) that are currently logged into a file
     server.  The message is sent to all workstations where a user is logged
     in and the message receipt is not disabled (castoff).  The message is
     displayed in line 24 of the screen and must be confirmed with <Ctrl>
     <Return>.

     The message system of CA-Clipper Tools (NNETMSGOPN()) allows the
     interrupt-controlled receipt of messages in the background.  The
     incoming messages can be processed within the application, and the
     computer is not interrupted in critical moments.

     If the parameter <lNoSender> is set to .F. or no parameter is set, the
     message contains information about the sender.  This information
     consists of the word "from", the name of the sender, and the connection
     ID.  By passing <lNoSender> with .T., the sender information can be
     suppressed.  With the parameters <cServer> or <nConId>, the message can
     be sent on any attached file server.  The connection ID of a server is
     returned by NNETATTACH() or NNETLOGIN().

 Example

     Send a message to all users on the default server:

     nNumber= NNETSNDALL('Backup in 5 minutes!')
     ? 'Message has been sent to '+NTOC(nNumber)+' station(s)!'

See Also: NNETMSGOPN() NNETSNDCON() NNETSNDGRP() NNETSNDLOG()

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