home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{51B6329F-FE8A-11D2-BF43-0040054FB896}#45.0#0"; "VB6database.ocx"
- Object = "{D38910A8-E766-11D0-B2AE-444553540000}#1.0#0"; "OACTools.ocx"
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 4845
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 8100
- LinkTopic = "Form1"
- ScaleHeight = 323
- ScaleMode = 3 'Pixel
- ScaleWidth = 540
- StartUpPosition = 3 'Windows Default
- Begin OACTools.OACLabel OACLabel1
- Height = 195
- Left = 900
- TabIndex = 3
- Top = 1980
- Width = 1365
- _ExtentX = 2408
- _ExtentY = 344
- Caption = "OACLabel"
- ForeColor = 0
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin VB.TextBox Text2
- DataField = "Descrizione Articolo"
- DataSource = "Data1"
- Height = 435
- Left = 2100
- TabIndex = 2
- Text = "Text2"
- Top = 1200
- Width = 2595
- End
- Begin VB.TextBox Text1
- DataField = "Codice"
- DataSource = "Data1"
- Height = 495
- Left = 2100
- TabIndex = 1
- Text = "Text1"
- Top = 540
- Width = 2535
- End
- Begin VB.Data Data1
- Caption = "Data1"
- Connect = "Access"
- DatabaseName = "C:\Tools Visual Basic\VB6 database\Genius.mdb"
- DefaultCursorType= 0 'DefaultCursor
- DefaultType = 2 'UseODBC
- Exclusive = 0 'False
- Height = 495
- Left = 2820
- Options = 0
- ReadOnly = 0 'False
- RecordsetType = 1 'Dynaset
- RecordSource = "select * from [Articolo]"
- Top = 2400
- Width = 2775
- End
- Begin VB6database.VB6DB VB6DB1
- Align = 2 'Align Bottom
- Height = 1605
- Left = 0
- TabIndex = 0
- Top = 3240
- Width = 7620
- _ExtentX = 13441
- _ExtentY = 2831
- NomeDB = "Data1"
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Form_Click()
- Dim tabella As TableDef
- Dim indice As Index
- Dim datab As Database
- Set datab = OpenDatabase("c:\tools visual basic\vb6 database\Genius.mdb")
- Set tabella = datab!Articolo
- For Each indice In tabella.Indexes
- MsgBox indice.Name
- Next indice
- End Sub
-