home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 January / PCWorld_2001-01_cd.bin / Software / Topware / xmlspy / xmlspy35.exe / Main / DlgExpDest.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2000-11-20  |  7.0 KB  |  228 lines

  1. VERSION 5.00
  2. Begin VB.Form DlgExpDest 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "Export destination"
  5.    ClientHeight    =   3300
  6.    ClientLeft      =   4440
  7.    ClientTop       =   2700
  8.    ClientWidth     =   7200
  9.    LinkTopic       =   "Form1"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   3300
  13.    ScaleWidth      =   7200
  14.    ShowInTaskbar   =   0   'False
  15.    Begin VB.OptionButton OptionDB 
  16.       Caption         =   "Do export to database"
  17.       Height          =   255
  18.       Left            =   3360
  19.       TabIndex        =   12
  20.       Top             =   120
  21.       Width           =   3135
  22.    End
  23.    Begin VB.OptionButton OptionText 
  24.       Caption         =   "Do export to text"
  25.       Height          =   255
  26.       Left            =   120
  27.       TabIndex        =   11
  28.       Top             =   120
  29.       Width           =   3015
  30.    End
  31.    Begin VB.Frame Frame2 
  32.       Caption         =   "Export to database settings"
  33.       Height          =   2055
  34.       Left            =   3360
  35.       TabIndex        =   3
  36.       Top             =   480
  37.       Width           =   3735
  38.       Begin VB.CheckBox CheckTables 
  39.          Caption         =   "Create missing tables (text field length is 255 characters)"
  40.          Height          =   375
  41.          Left            =   240
  42.          TabIndex        =   18
  43.          Top             =   1320
  44.          Width           =   3015
  45.       End
  46.       Begin VB.CommandButton BtnBrowseDB 
  47.          Caption         =   "Browse"
  48.          Height          =   255
  49.          Left            =   2880
  50.          TabIndex        =   17
  51.          Top             =   840
  52.          Width           =   735
  53.       End
  54.       Begin VB.TextBox DBFileEdit 
  55.          Height          =   285
  56.          Left            =   720
  57.          TabIndex        =   15
  58.          Text            =   "file"
  59.          Top             =   840
  60.          Width           =   2055
  61.       End
  62.       Begin VB.OptionButton OptionExistingDB 
  63.          Caption         =   "Use existing MS Access database"
  64.          Height          =   255
  65.          Left            =   240
  66.          TabIndex        =   14
  67.          Top             =   600
  68.          Width           =   3015
  69.       End
  70.       Begin VB.OptionButton OptionNewDB 
  71.          Caption         =   "Create new MS Access database"
  72.          Height          =   255
  73.          Left            =   240
  74.          TabIndex        =   13
  75.          Top             =   360
  76.          Width           =   2775
  77.       End
  78.       Begin VB.Label Label5 
  79.          Caption         =   "File:"
  80.          Height          =   255
  81.          Left            =   300
  82.          TabIndex        =   16
  83.          Top             =   900
  84.          Width           =   375
  85.       End
  86.    End
  87.    Begin VB.Frame Frame1 
  88.       Caption         =   "Export to text settings"
  89.       Height          =   2055
  90.       Left            =   120
  91.       TabIndex        =   2
  92.       Top             =   480
  93.       Width           =   3015
  94.       Begin VB.CommandButton BtnBrowse 
  95.          Caption         =   "Browse"
  96.          Height          =   255
  97.          Left            =   2160
  98.          TabIndex        =   10
  99.          Top             =   480
  100.          Width           =   735
  101.       End
  102.       Begin VB.TextBox FolderEdit 
  103.          Height          =   285
  104.          Left            =   240
  105.          TabIndex        =   8
  106.          Text            =   "folder"
  107.          Top             =   480
  108.          Width           =   1815
  109.       End
  110.       Begin VB.CheckBox CheckHeader 
  111.          Caption         =   "Create header row"
  112.          Height          =   255
  113.          Left            =   240
  114.          TabIndex        =   4
  115.          Top             =   840
  116.          Width           =   2535
  117.       End
  118.       Begin VB.Label Label4 
  119.          Caption         =   "Destination folder:"
  120.          Height          =   255
  121.          Left            =   240
  122.          TabIndex        =   9
  123.          Top             =   240
  124.          Width           =   1695
  125.       End
  126.       Begin VB.Label Label3 
  127.          Caption         =   "There is no enclosing character"
  128.          Height          =   255
  129.          Left            =   240
  130.          TabIndex        =   7
  131.          Top             =   1200
  132.          Width           =   2535
  133.       End
  134.       Begin VB.Label Label2 
  135.          Caption         =   "Field delimiter is 0x09"
  136.          Height          =   255
  137.          Left            =   240
  138.          TabIndex        =   6
  139.          Top             =   1440
  140.          Width           =   2535
  141.       End
  142.       Begin VB.Label Label1 
  143.          Caption         =   "File extension is .txt"
  144.          Height          =   255
  145.          Left            =   240
  146.          TabIndex        =   5
  147.          Top             =   1680
  148.          Width           =   2535
  149.       End
  150.    End
  151.    Begin VB.CommandButton CancelButton 
  152.       Caption         =   "Cancel"
  153.       Height          =   375
  154.       Left            =   3960
  155.       TabIndex        =   1
  156.       Top             =   2760
  157.       Width           =   1215
  158.    End
  159.    Begin VB.CommandButton OKButton 
  160.       Caption         =   "Export"
  161.       Height          =   375
  162.       Left            =   5640
  163.       TabIndex        =   0
  164.       Top             =   2760
  165.       Width           =   1215
  166.    End
  167. Attribute VB_Name = "DlgExpDest"
  168. Attribute VB_GlobalNameSpace = False
  169. Attribute VB_Creatable = False
  170. Attribute VB_PredeclaredId = True
  171. Attribute VB_Exposed = False
  172. Public bOK As Boolean
  173. Option Explicit
  174. Private Sub BtnBrowse_Click()
  175.     Dim pos As Long
  176.     Dim objDlg
  177.     Set objDlg = CreateObject("MSComDlg.CommonDialog")
  178.     objDlg.DialogTitle = "Please locate a file in the destination folder"
  179.     objDlg.ShowOpen
  180.     If Len(objDlg.FileName) > 0 Then
  181.         pos = InStrRev(objDlg.FileName, "\")
  182.         If pos > 3 Then
  183.             FolderEdit.Text = Left(objDlg.FileName, pos)
  184.         Else
  185.             FolderEdit.Text = objDlg.FileName
  186.         End If
  187.     End If
  188. End Sub
  189. Private Sub BtnBrowseDB_Click()
  190.     Dim pos As Long
  191.     Dim objDlg
  192.     Set objDlg = CreateObject("MSComDlg.CommonDialog")
  193.     objDlg.DialogTitle = "Locate a file in the destination folder"
  194.     If OptionExistingDB.Value = True Then
  195.         objDlg.DialogTitle = "Locate the MS Access file"
  196.     End If
  197.     objDlg.ShowOpen
  198.     DBFileEdit.Text = objDlg.FileName
  199.     If OptionNewDB.Value = True Then
  200.         If Len(objDlg.FileName) > 0 Then
  201.             pos = InStrRev(objDlg.FileName, "\")
  202.             If pos > 3 Then
  203.                 DBFileEdit.Text = Left(objDlg.FileName, pos)
  204.             End If
  205.         End If
  206.     End If
  207. End Sub
  208. Private Sub CancelButton_Click()
  209.     Hide
  210. End Sub
  211. Private Sub Form_Activate()
  212.     bOK = False
  213.     OptionText.Value = True
  214.     OptionNewDB.Value = True
  215. End Sub
  216. Private Sub OKButton_Click()
  217.     bOK = True
  218.     Hide
  219. End Sub
  220. Private Sub OptionDB_Click()
  221.     Frame2.Enabled = True
  222.     Frame1.Enabled = False
  223. End Sub
  224. Private Sub OptionText_Click()
  225.     Frame2.Enabled = False
  226.     Frame1.Enabled = True
  227. End Sub
  228.