home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / bp_6_93 / vbwin / phoenix / tableinf.txt < prev    next >
Text File  |  1995-02-26  |  776b  |  25 lines

  1. Sub Command1_Click ()
  2.     TableInfoForm.Hide
  3.     TableInfoForm.Row.Clear
  4. End Sub
  5.  
  6. Sub Form_Activate ()
  7.     Dim field As Integer
  8.     Dim tableinfo As TABLE_INFO
  9.     Dim fieldinfo As FIELD_INFO
  10.  
  11.     If db_tableinfo(Db, TBL_LEUTE, tableinfo) <> FAILURE Then
  12.         TableInfoForm.NrRec.Caption = tableinfo.recs
  13.         TableInfoForm.NrCol.Caption = tableinfo.cols - 1    ' don't count address field
  14.         TableInfoForm.NrInx.Caption = tableinfo.indexes
  15.         TableInfoForm.SizeRec.Caption = tableinfo.size
  16.         
  17.         For field = 1 To tableinfo.cols - 1
  18.             If db_fieldinfo(Db, TBL_LEUTE, field, fieldinfo) <> FAILURE Then
  19.                 TableInfoForm.Row.AddItem fieldinfo.name
  20.             End If
  21.         Next field
  22.     End If
  23. End Sub
  24.  
  25.