home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / oledem / docname.frm (.txt) next >
Encoding:
Visual Basic Form  |  1995-05-08  |  2.6 KB  |  93 lines

  1. VERSION 2.00
  2. Begin Form frmDocumentName 
  3.    BorderStyle     =   3  'Fixed Double
  4.    Caption         =   "Name and Type"
  5.    ClientHeight    =   2415
  6.    ClientLeft      =   1590
  7.    ClientTop       =   1635
  8.    ClientWidth     =   3375
  9.    ControlBox      =   0   'False
  10.    Height          =   2820
  11.    Left            =   1530
  12.    LinkTopic       =   "Form1"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   2415
  16.    ScaleWidth      =   3375
  17.    Top             =   1290
  18.    Width           =   3495
  19.    Begin CommandButton CommandCancel 
  20.       Caption         =   "Cancel"
  21.       Height          =   435
  22.       Left            =   2070
  23.       TabIndex        =   6
  24.       Top             =   1920
  25.       Width           =   1155
  26.    End
  27.    Begin CommandButton CommandOK 
  28.       Caption         =   "OK"
  29.       Default         =   -1  'True
  30.       Height          =   435
  31.       Left            =   180
  32.       TabIndex        =   5
  33.       Top             =   1920
  34.       Width           =   1155
  35.    End
  36.    Begin Frame Frame1 
  37.       Caption         =   "Save Type"
  38.       Height          =   915
  39.       Left            =   150
  40.       TabIndex        =   2
  41.       Top             =   870
  42.       Width           =   3075
  43.       Begin OptionButton OptionDocumentType 
  44.          Caption         =   "Ole 2"
  45.          Height          =   255
  46.          Index           =   1
  47.          Left            =   360
  48.          TabIndex        =   4
  49.          Top             =   570
  50.          Width           =   2355
  51.       End
  52.       Begin OptionButton OptionDocumentType 
  53.          Caption         =   "Access 1.x"
  54.          Height          =   255
  55.          Index           =   0
  56.          Left            =   360
  57.          TabIndex        =   3
  58.          Top             =   300
  59.          Value           =   -1  'True
  60.          Width           =   2355
  61.       End
  62.    End
  63.    Begin TextBox TextDocumentName 
  64.       Height          =   405
  65.       Left            =   120
  66.       TabIndex        =   1
  67.       Top             =   330
  68.       Width           =   3075
  69.    End
  70.    Begin Label Label1 
  71.       Caption         =   "Document Name"
  72.       Height          =   255
  73.       Left            =   120
  74.       TabIndex        =   0
  75.       Top             =   90
  76.       Width           =   1575
  77.    End
  78. Sub CommandCancel_Click ()
  79.     sDocumentName = ""
  80.     Hide
  81. End Sub
  82. Sub CommandOK_Click ()
  83.     Dim i As Integer
  84.     sDocumentName = TextDocumentName.Text
  85.     For i = 0 To DOCUMENT_TYPE_MAX
  86.         If OptionDocumentType(i).Value Then
  87.             iDocumentType = i
  88.             Exit For
  89.         End If
  90.     Next
  91.     Hide
  92. End Sub
  93.