home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code1 / nivb_src / acct.frm < prev    next >
Text File  |  1993-06-03  |  2KB  |  63 lines

  1. VERSION 2.00
  2. Begin Form AcctForm 
  3.    Caption         =   "Test NetWare Accounting Services"
  4.    Height          =   2670
  5.    Left            =   1950
  6.    LinkMode        =   1  'Source
  7.    LinkTopic       =   "Form2"
  8.    ScaleHeight     =   2265
  9.    ScaleWidth      =   7305
  10.    Top             =   1155
  11.    Width           =   7425
  12.    Begin ListBox ServerList 
  13.       FontBold        =   -1  'True
  14.       FontItalic      =   0   'False
  15.       FontName        =   "Courier"
  16.       FontSize        =   9.75
  17.       FontStrikethru  =   0   'False
  18.       FontUnderline   =   0   'False
  19.       Height          =   1590
  20.       Left            =   120
  21.       TabIndex        =   1
  22.       Top             =   120
  23.       Width           =   7095
  24.    End
  25.    Begin CommandButton OKButton 
  26.       Caption         =   "&OK"
  27.       Default         =   -1  'True
  28.       Height          =   375
  29.       Left            =   3240
  30.       TabIndex        =   0
  31.       Top             =   1800
  32.       Width           =   855
  33.    End
  34. End
  35.  
  36. Sub Form_Load ()
  37.     For connID% = 1 To 8
  38.         'for each connection in workstation's file server name table
  39.         'get the table entry, then see if it's null
  40.         
  41.         serverName$ = String$(48, 0)
  42.  
  43.         If (IsConnectionIDInUse(connID%) = 1) Then
  44.             GetFileServerName connID%, serverName$
  45.             serverName$ = Left$(serverName$, InStr(serverName$, Chr$(0)) - 1)
  46.             If (Len(serverName$) > 20) Then
  47.                 serverName$ = Left$(serverName$, 20)
  48.             End If
  49.  
  50.             If (AccountingInstalled(connID%) = 1) Then
  51.                 ServerList.AddItem Str$(connID%) + "  " + serverName$ + String$(22 - Len(serverName$), " ") + " Accounting Installed"
  52.             Else
  53.                 ServerList.AddItem Str$(connID%) + "  " + serverName$ + String$(22 - Len(serverName$), " ") + " Accounting Not Installed"
  54.             End If
  55.         End If
  56.     Next connID%
  57. End Sub
  58.  
  59. Sub OKButton_Click ()
  60.     Unload AcctForm
  61. End Sub
  62.  
  63.