home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 27 / IOPROG_27.ISO / SOFT / DATABASE.ZIP / provaVB6DB.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-05-22  |  3.1 KB  |  97 lines

  1. VERSION 5.00
  2. Object = "{51B6329F-FE8A-11D2-BF43-0040054FB896}#45.0#0"; "VB6database.ocx"
  3. Object = "{D38910A8-E766-11D0-B2AE-444553540000}#1.0#0"; "OACTools.ocx"
  4. Begin VB.Form Form1 
  5.    Caption         =   "Form1"
  6.    ClientHeight    =   4845
  7.    ClientLeft      =   60
  8.    ClientTop       =   345
  9.    ClientWidth     =   8100
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   323
  12.    ScaleMode       =   3  'Pixel
  13.    ScaleWidth      =   540
  14.    StartUpPosition =   3  'Windows Default
  15.    Begin OACTools.OACLabel OACLabel1 
  16.       Height          =   195
  17.       Left            =   900
  18.       TabIndex        =   3
  19.       Top             =   1980
  20.       Width           =   1365
  21.       _ExtentX        =   2408
  22.       _ExtentY        =   344
  23.       Caption         =   "OACLabel"
  24.       ForeColor       =   0
  25.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  26.          Name            =   "Tahoma"
  27.          Size            =   8.25
  28.          Charset         =   0
  29.          Weight          =   700
  30.          Underline       =   0   'False
  31.          Italic          =   0   'False
  32.          Strikethrough   =   0   'False
  33.       EndProperty
  34.    End
  35.    Begin VB.TextBox Text2 
  36.       DataField       =   "Descrizione Articolo"
  37.       DataSource      =   "Data1"
  38.       Height          =   435
  39.       Left            =   2100
  40.       TabIndex        =   2
  41.       Text            =   "Text2"
  42.       Top             =   1200
  43.       Width           =   2595
  44.    End
  45.    Begin VB.TextBox Text1 
  46.       DataField       =   "Codice"
  47.       DataSource      =   "Data1"
  48.       Height          =   495
  49.       Left            =   2100
  50.       TabIndex        =   1
  51.       Text            =   "Text1"
  52.       Top             =   540
  53.       Width           =   2535
  54.    End
  55.    Begin VB.Data Data1 
  56.       Caption         =   "Data1"
  57.       Connect         =   "Access"
  58.       DatabaseName    =   "C:\Tools Visual Basic\VB6 database\Genius.mdb"
  59.       DefaultCursorType=   0  'DefaultCursor
  60.       DefaultType     =   2  'UseODBC
  61.       Exclusive       =   0   'False
  62.       Height          =   495
  63.       Left            =   2820
  64.       Options         =   0
  65.       ReadOnly        =   0   'False
  66.       RecordsetType   =   1  'Dynaset
  67.       RecordSource    =   "select * from [Articolo]"
  68.       Top             =   2400
  69.       Width           =   2775
  70.    End
  71.    Begin VB6database.VB6DB VB6DB1 
  72.       Align           =   2  'Align Bottom
  73.       Height          =   1605
  74.       Left            =   0
  75.       TabIndex        =   0
  76.       Top             =   3240
  77.       Width           =   7620
  78.       _ExtentX        =   13441
  79.       _ExtentY        =   2831
  80.       NomeDB          =   "Data1"
  81.    End
  82. Attribute VB_Name = "Form1"
  83. Attribute VB_GlobalNameSpace = False
  84. Attribute VB_Creatable = False
  85. Attribute VB_PredeclaredId = True
  86. Attribute VB_Exposed = False
  87. Private Sub Form_Click()
  88. Dim tabella As TableDef
  89. Dim indice As Index
  90. Dim datab As Database
  91. Set datab = OpenDatabase("c:\tools visual basic\vb6 database\Genius.mdb")
  92. Set tabella = datab!Articolo
  93. For Each indice In tabella.Indexes
  94.     MsgBox indice.Name
  95. Next indice
  96. End Sub
  97.