[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FN_CONNINF()
 GetConnectionInformation
------------------------------------------------------------------------------
 Syntax
 
       fn_connInf( [ <nConnectionNo> ] ) -> aConnectionInfo
 
 Arguments

      <nConnectionNo> is the connection number that you are interested in.
      If omitted, it defaults to the current workstation.

 Returns

      An array containing connection information according to the following
      table

              Position       Description         Data Type
              --------------------------------------------
                 1           Object ID           Numeric
                 2           Object Type         Numeric
                 3           Object Name         Character
                 4           Login Date          Date
                 5           Login Day           Numeric (0-6)
                 6           Login Time          Character

      For a list of Object Types, see the "Information" section
      of this Norton Guide.

      If the returned Object ID is 0, there is no object logged into the
      requested connection number.  The Login Time is represented in 24
      hour format, i.e. HH:MM:SS.  The Login Date is represented as a
      Clipper date.

 Description

      This function returns information about the object currently logged
      in to the specified connection number.

 Examples

      aLogInfo := fn_connInf()

      @ 10, 20 SAY 'Hello ' + TRIM( aLogInfo[ 3 ] ) + ;
                   ', your login time is ' + aLogInfo[ 6 ]


 Source: N:\SRC\CONNWS\CONNINF.PRG

 Author: Steve Larsen

See Also: fn_whoami() fn_connNum() fn_connID()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson