home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 32 / IOPROG_32.ISO / SOFT / SqlEval7 / devtools / samples / sqldmo / vb / idxtest / getparam.frm (.txt) next >
Encoding:
Visual Basic Form  |  1998-04-05  |  3.2 KB  |  103 lines

  1. VERSION 5.00
  2. Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
  3. Begin VB.Form frmIdxTestGetParams 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "Enter parameter values for..."
  6.    ClientHeight    =   2805
  7.    ClientLeft      =   45
  8.    ClientTop       =   345
  9.    ClientWidth     =   6225
  10.    LinkTopic       =   "Form1"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   2805
  14.    ScaleWidth      =   6225
  15.    ShowInTaskbar   =   0   'False
  16.    StartUpPosition =   3  'Windows Default
  17.    Begin VB.CommandButton cmdCancel 
  18.       Cancel          =   -1  'True
  19.       Caption         =   "Cancel"
  20.       Height          =   375
  21.       Left            =   4680
  22.       TabIndex        =   3
  23.       Top             =   660
  24.       Width           =   1335
  25.    End
  26.    Begin VB.CommandButton cmdOK 
  27.       Caption         =   "OK"
  28.       Default         =   -1  'True
  29.       Height          =   375
  30.       Left            =   4680
  31.       TabIndex        =   2
  32.       Top             =   120
  33.       Width           =   1335
  34.    End
  35.    Begin VB.Frame frameParameters 
  36.       Caption         =   "Parameters"
  37.       Height          =   1995
  38.       Left            =   180
  39.       TabIndex        =   1
  40.       Top             =   600
  41.       Width           =   4275
  42.       Begin MSFlexGridLib.MSFlexGrid gridParameters 
  43.          Height          =   1575
  44.          Left            =   180
  45.          TabIndex        =   4
  46.          Top             =   240
  47.          Width           =   3915
  48.          _ExtentX        =   6906
  49.          _ExtentY        =   2778
  50.          _Version        =   65541
  51.          Rows            =   10
  52.          Cols            =   3
  53.          FixedCols       =   2
  54.       End
  55.    End
  56.    Begin VB.Label lblSProcName 
  57.       Height          =   255
  58.       Left            =   180
  59.       TabIndex        =   0
  60.       Top             =   180
  61.       Width           =   4275
  62.    End
  63. Attribute VB_Name = "frmIdxTestGetParams"
  64. Attribute VB_GlobalNameSpace = False
  65. Attribute VB_Creatable = False
  66. Attribute VB_PredeclaredId = True
  67. Attribute VB_Exposed = False
  68. Public bOK As Boolean
  69. Private Sub cmdCancel_Click()
  70.     bOK = False
  71.     frmIdxTestGetParams.Hide
  72. End Sub
  73. Private Sub cmdOK_Click()
  74.     bOK = True
  75.     frmIdxTestGetParams.Hide
  76. End Sub
  77. Private Sub Form_Load()
  78.     gridParameters.ColWidth(0) = 1200
  79.     gridParameters.ColWidth(1) = 1200
  80.     gridParameters.ColWidth(2) = 1300
  81.     gridParameters.Row = 0
  82.     gridParameters.Col = 0
  83.     gridParameters.Text = "Parameter"
  84.     gridParameters.Col = 1
  85.     gridParameters.Text = "Data type"
  86.     gridParameters.Col = 2
  87.     gridParameters.Text = "Value"
  88. End Sub
  89. Private Sub gridParameters_KeyPress(KeyAscii As Integer)
  90.     If Chr(KeyAscii) >= "-" And Chr(KeyAscii) <= "z" Then
  91.         Dim strCurrent As String
  92.         strCurrent = gridParameters.Text
  93.         gridParameters.Text = strCurrent + Chr(KeyAscii)
  94.     End If
  95. End Sub
  96. Private Sub gridParameters_KeyUp(KeyCode As Integer, Shift As Integer)
  97.     If KeyCode = vbKeySpace Then
  98.         Dim strCurrent As String
  99.         strCurrent = gridParameters.Text
  100.         gridParameters.Text = strCurrent + " "
  101.     End If
  102. End Sub
  103.