home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / nettos11.zip / MISC / IS3X.PRG < prev    next >
Text File  |  1993-03-30  |  1KB  |  79 lines

  1. /*
  2.  * File......: IS3X.PRG
  3.  * Author....: Glenn Scott
  4.  * CIS ID....: 71620,1521
  5.  * Date......: $Date$
  6.  * Revision..: $Revision$
  7.  * Log file..: $Logfile$
  8.  * 
  9.  * This is an original work by Glenn Scott and is placed in the
  10.  * public domain.
  11.  *
  12.  * Modification history:
  13.  * ---------------------
  14.  *
  15.  * $Log$
  16.  *
  17.  */
  18.  
  19. #ifdef FT_TEST
  20.    function main()
  21.       local aTbl, nX
  22.  
  23.       aTbl := fn_fsname()
  24.       for nX := 1 to len( aTbl )
  25.          if !empty( aTbl[ nX ] )
  26.             qqout( aTbl[ nX ] + " " )
  27.             fn_pfeval( nX,  { ||  qqout( iif( fn_is3x(), "is 3.x", "is not 3.x" ) ) } )
  28.             qout( "" )
  29.          endif
  30.       next
  31. #endif
  32.  
  33.       
  34.         
  35.       
  36.  
  37.  
  38. /*  $DOC$
  39.  *  $FUNCNAME$
  40.  *      FN_IS3X()
  41.  *  $CATEGORY$
  42.  *      Miscellaneous
  43.  *  $ONELINER$
  44.  *      Is the current server a 3.x server?
  45.  *  $SYNTAX$
  46.  *
  47.  *      fn_is3x() -> lIs3X
  48.  *
  49.  *  $ARGUMENTS$
  50.  *
  51.  *      None
  52.  *
  53.  *  $RETURNS$
  54.  *
  55.  *      .t. if the server is a 3.x server, .f. if it isn't
  56.  * 
  57.  *  $DESCRIPTION$
  58.  *
  59.  *      A simple function that wraps around FN_GETFSI().  Determines
  60.  *      whether or not the current server is a NetWare 3.x server or
  61.  *      not.
  62.  *
  63.  *  $EXAMPLES$
  64.  *
  65.  *      if fn_is3X()
  66.  *         qout( "You're on NetWare 3.x" )
  67.  *      endif
  68.  *
  69.  *  $SEEALSO$
  70.  *      FN_GETFSI()
  71.  *  $INCLUDE$
  72.  *
  73.  *  $END$
  74.  */
  75.  
  76.  
  77. function fn_is3x()
  78.    return  ( fn_netver() > 3.0 )
  79.