home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / bp_6_93 / winword / wordvb3 / form1.frm < prev   
Text File  |  1993-01-05  |  13KB  |  460 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    Caption         =   "Datenbank interner Briefverkehr"
  4.    ClientHeight    =   6615
  5.    ClientLeft      =   30
  6.    ClientTop       =   1665
  7.    ClientWidth     =   9270
  8.    Height          =   7305
  9.    Left            =   -30
  10.    LinkMode        =   1  'Source
  11.    LinkTopic       =   "Form1"
  12.    ScaleHeight     =   6615
  13.    ScaleWidth      =   9270
  14.    Top             =   1035
  15.    Width           =   9390
  16.    WindowState     =   2  'Maximized
  17.    Begin TextBox Speichern 
  18.       Height          =   285
  19.       Left            =   5040
  20.       TabIndex        =   35
  21.       Top             =   6120
  22.       Visible         =   0   'False
  23.       Width           =   1215
  24.    End
  25.    Begin TextBox Close 
  26.       Height          =   285
  27.       Left            =   6480
  28.       TabIndex        =   34
  29.       Top             =   6120
  30.       Visible         =   0   'False
  31.       Width           =   1215
  32.    End
  33.    Begin TextBox NeuerSatz 
  34.       Height          =   285
  35.       Left            =   3720
  36.       TabIndex        =   33
  37.       Top             =   6120
  38.       Visible         =   0   'False
  39.       Width           =   1095
  40.    End
  41.    Begin CommandButton Wechsel 
  42.       Caption         =   "&Wechsel zu Word"
  43.       Height          =   375
  44.       Left            =   360
  45.       TabIndex        =   32
  46.       Top             =   5520
  47.       Width           =   2535
  48.    End
  49.    Begin TextBox Text1 
  50.       DataField       =   "Nummer"
  51.       DataSource      =   "Data1"
  52.       Height          =   285
  53.       Index           =   10
  54.       Left            =   7560
  55.       TabIndex        =   10
  56.       Text            =   "Text1"
  57.       Top             =   960
  58.       Width           =   975
  59.    End
  60.    Begin TextBox Text1 
  61.       DataField       =   "Betreff"
  62.       DataSource      =   "Data1"
  63.       Height          =   285
  64.       Index           =   11
  65.       Left            =   360
  66.       TabIndex        =   11
  67.       Text            =   "Text1"
  68.       Top             =   1560
  69.       Width           =   8535
  70.    End
  71.    Begin TextBox Text1 
  72.       DataField       =   "Datei"
  73.       DataSource      =   "Data1"
  74.       Height          =   285
  75.       Index           =   9
  76.       Left            =   6120
  77.       TabIndex        =   9
  78.       Text            =   "Text1"
  79.       Top             =   960
  80.       Width           =   1335
  81.    End
  82.    Begin TextBox Text1 
  83.       DataField       =   "Datum"
  84.       DataSource      =   "Data1"
  85.       Height          =   285
  86.       Index           =   8
  87.       Left            =   4560
  88.       TabIndex        =   8
  89.       Text            =   "Text1"
  90.       Top             =   960
  91.       Width           =   1335
  92.    End
  93.    Begin TextBox Text1 
  94.       DataField       =   "Fax"
  95.       DataSource      =   "Data1"
  96.       Height          =   285
  97.       Index           =   7
  98.       Left            =   3480
  99.       TabIndex        =   7
  100.       Text            =   "Text1"
  101.       Top             =   960
  102.       Width           =   855
  103.    End
  104.    Begin TextBox Text1 
  105.       DataField       =   "Telefon"
  106.       DataSource      =   "Data1"
  107.       Height          =   285
  108.       Index           =   6
  109.       Left            =   2520
  110.       TabIndex        =   6
  111.       Text            =   "Text1"
  112.       Top             =   960
  113.       Width           =   855
  114.    End
  115.    Begin TextBox Text1 
  116.       DataField       =   "Gebaeude"
  117.       DataSource      =   "Data1"
  118.       Height          =   285
  119.       Index           =   5
  120.       Left            =   1560
  121.       TabIndex        =   5
  122.       Text            =   "Text1"
  123.       Top             =   960
  124.       Width           =   855
  125.    End
  126.    Begin TextBox Text1 
  127.       DataField       =   "Abteilung"
  128.       DataSource      =   "Data1"
  129.       Height          =   285
  130.       Index           =   4
  131.       Left            =   360
  132.       TabIndex        =   4
  133.       Text            =   "Text1"
  134.       Top             =   960
  135.       Width           =   855
  136.    End
  137.    Begin TextBox Text1 
  138.       DataField       =   "Nachname"
  139.       DataSource      =   "Data1"
  140.       Height          =   285
  141.       Index           =   3
  142.       Left            =   5640
  143.       TabIndex        =   3
  144.       Text            =   "Text1"
  145.       Top             =   360
  146.       Width           =   3375
  147.    End
  148.    Begin TextBox Text1 
  149.       DataField       =   "Vorname"
  150.       DataSource      =   "Data1"
  151.       Height          =   285
  152.       Index           =   2
  153.       Left            =   2520
  154.       TabIndex        =   2
  155.       Text            =   "Text1"
  156.       Top             =   360
  157.       Width           =   2775
  158.    End
  159.    Begin CommandButton Loeschen 
  160.       Caption         =   "&L÷schen"
  161.       Height          =   375
  162.       Left            =   6240
  163.       TabIndex        =   17
  164.       Top             =   4920
  165.       Width           =   1095
  166.    End
  167.    Begin CommandButton Sichern 
  168.       Caption         =   "&Sichern"
  169.       Height          =   375
  170.       Left            =   4800
  171.       TabIndex        =   16
  172.       Top             =   4920
  173.       Width           =   1095
  174.    End
  175.    Begin CommandButton Neu 
  176.       Caption         =   "&Neu"
  177.       Height          =   375
  178.       Left            =   3240
  179.       TabIndex        =   15
  180.       Top             =   4920
  181.       Width           =   1095
  182.    End
  183.    Begin CommandButton Kopieren 
  184.       Caption         =   "&Kopieren in Zwischenablage"
  185.       Height          =   375
  186.       Left            =   3240
  187.       TabIndex        =   14
  188.       Top             =   5520
  189.       Width           =   2655
  190.    End
  191.    Begin CommandButton Einfuegen 
  192.       Caption         =   "&Einfⁿgen aus Zwischenablage"
  193.       Height          =   375
  194.       Left            =   6240
  195.       TabIndex        =   13
  196.       Top             =   5520
  197.       Width           =   2775
  198.    End
  199.    Begin TextBox Text1 
  200.       DataField       =   "Text"
  201.       DataSource      =   "Data1"
  202.       Height          =   2535
  203.       Index           =   12
  204.       Left            =   360
  205.       MultiLine       =   -1  'True
  206.       ScrollBars      =   3  'Both
  207.       TabIndex        =   12
  208.       Text            =   "Text1"
  209.       Top             =   2280
  210.       Width           =   8655
  211.    End
  212.    Begin TextBox Text1 
  213.       DataField       =   "Titel"
  214.       DataSource      =   "Data1"
  215.       Height          =   285
  216.       Index           =   1
  217.       Left            =   1560
  218.       TabIndex        =   1
  219.       Text            =   "Text1"
  220.       Top             =   360
  221.       Width           =   615
  222.    End
  223.    Begin TextBox Text1 
  224.       DataField       =   "Anrede"
  225.       DataSource      =   "Data1"
  226.       Height          =   285
  227.       Index           =   0
  228.       Left            =   360
  229.       TabIndex        =   0
  230.       Text            =   "Text1"
  231.       Top             =   360
  232.       Width           =   975
  233.    End
  234.    Begin Data data1 
  235.       Caption         =   "Data1"
  236.       Connect         =   ""
  237.       DatabaseName    =   "C:\bp1\word\ablage.mdB"
  238.       Exclusive       =   0   'False
  239.       Height          =   495
  240.       Left            =   360
  241.       Options         =   0
  242.       ReadOnly        =   0   'False
  243.       RecordSource    =   "Briefe_Intern"
  244.       Top             =   4920
  245.       Width           =   2535
  246.    End
  247.    Begin Label Label3 
  248.       DataSource      =   "data1"
  249.       Height          =   255
  250.       Left            =   3480
  251.       TabIndex        =   31
  252.       Top             =   5040
  253.       Width           =   375
  254.    End
  255.    Begin Label Label1 
  256.       Caption         =   "Lf. Nummer"
  257.       Height          =   255
  258.       Index           =   12
  259.       Left            =   7560
  260.       TabIndex        =   30
  261.       Top             =   720
  262.       Width           =   1095
  263.    End
  264.    Begin Label Label1 
  265.       Caption         =   "Inhalt"
  266.       Height          =   255
  267.       Index           =   11
  268.       Left            =   360
  269.       TabIndex        =   29
  270.       Top             =   2040
  271.       Width           =   735
  272.    End
  273.    Begin Label Label1 
  274.       Caption         =   "Betreff"
  275.       Height          =   255
  276.       Index           =   10
  277.       Left            =   360
  278.       TabIndex        =   28
  279.       Top             =   1320
  280.       Width           =   1695
  281.    End
  282.    Begin Label Label1 
  283.       Caption         =   "Datei"
  284.       Height          =   255
  285.       Index           =   9
  286.       Left            =   6120
  287.       TabIndex        =   27
  288.       Top             =   720
  289.       Width           =   615
  290.    End
  291.    Begin Label Label1 
  292.       Caption         =   "Datum"
  293.       Height          =   255
  294.       Index           =   8
  295.       Left            =   4560
  296.       TabIndex        =   26
  297.       Top             =   720
  298.       Width           =   735
  299.    End
  300.    Begin Label Label1 
  301.       Caption         =   "Fax"
  302.       Height          =   255
  303.       Index           =   7
  304.       Left            =   3480
  305.       TabIndex        =   25
  306.       Top             =   720
  307.       Width           =   615
  308.    End
  309.    Begin Label Label1 
  310.       Caption         =   "Telefon"
  311.       Height          =   255
  312.       Index           =   6
  313.       Left            =   2520
  314.       TabIndex        =   24
  315.       Top             =   720
  316.       Width           =   1695
  317.    End
  318.    Begin Label Label1 
  319.       Caption         =   "GebΣude"
  320.       Height          =   255
  321.       Index           =   5
  322.       Left            =   1560
  323.       TabIndex        =   23
  324.       Top             =   720
  325.       Width           =   855
  326.    End
  327.    Begin Label Label1 
  328.       Caption         =   "Abteilung"
  329.       Height          =   255
  330.       Index           =   4
  331.       Left            =   360
  332.       TabIndex        =   22
  333.       Top             =   720
  334.       Width           =   855
  335.    End
  336.    Begin Label Label1 
  337.       Caption         =   "Nachname"
  338.       Height          =   255
  339.       Index           =   3
  340.       Left            =   5640
  341.       TabIndex        =   21
  342.       Top             =   120
  343.       Width           =   1095
  344.    End
  345.    Begin Label Label1 
  346.       Caption         =   "Vorname"
  347.       Height          =   255
  348.       Index           =   2
  349.       Left            =   2520
  350.       TabIndex        =   20
  351.       Top             =   120
  352.       Width           =   855
  353.    End
  354.    Begin Label Label1 
  355.       Caption         =   "Titel"
  356.       Height          =   255
  357.       Index           =   1
  358.       Left            =   1560
  359.       TabIndex        =   19
  360.       Top             =   120
  361.       Width           =   495
  362.    End
  363.    Begin Label Label1 
  364.       Caption         =   "Anrede"
  365.       Height          =   255
  366.       Index           =   0
  367.       Left            =   360
  368.       TabIndex        =   18
  369.       Top             =   120
  370.       Width           =   735
  371.    End
  372.    Begin Menu Men_Datei 
  373.       Caption         =   "&Datei"
  374.       Begin Menu Men_Ende 
  375.          Caption         =   "&Ende"
  376.       End
  377.    End
  378. End
  379.  
  380. Sub Close_Change ()
  381.     Static flag
  382.     If flag = 0 Then
  383.         data1.Recordset.MoveLast
  384.         data1.Recordset.Update
  385.         text1(12).Text = Clipboard.GetText()
  386.         text1(0).SetFocus
  387.         flag = 1
  388.     Else
  389.         flag = 0
  390.     End If
  391. End Sub
  392.  
  393. Sub Einfuegen_Click ()
  394.       text1(12).Text = Clipboard.GetText()
  395. End Sub
  396.  
  397. Sub Kopieren_Click ()
  398.     Clipboard.Clear
  399.     Clipboard.SetText text1(12).SelText
  400. End Sub
  401.  
  402. Sub Loeschen_Click ()
  403.     If data1.Recordset.BOF = False Then
  404.         data1.Recordset.Delete
  405.         data1.Recordset.MovePrevious
  406.         text1(0).SetFocus
  407.     End If
  408. End Sub
  409.  
  410. Sub Men_Ende_Click ()
  411.     End
  412. End Sub
  413.  
  414. Sub Neu_Click ()
  415.     If data1.Recordset.BOF Then
  416.         data1.Recordset.AddNew
  417.         text1(10) = 1
  418.     Else
  419.         data1.Recordset.MoveLast
  420.         n_num = data1.Recordset("Nummer")
  421.         data1.Recordset.AddNew
  422.         text1(10) = n_num + 1
  423.     End If
  424.        text1(0).SetFocus
  425. End Sub
  426.  
  427. Sub NeuerSatz_Change ()
  428.     Static flag
  429.     If flag = 0 Then
  430.         data1.Recordset.MoveLast
  431.         n_num = data1.Recordset("Nummer")
  432.         data1.Recordset.AddNew
  433.         text1(10) = n_num + 1
  434.         flag = 1
  435.     Else
  436.         flag = 0
  437.     End If
  438. End Sub
  439.  
  440. Sub Sichern_click ()
  441.     data1.Recordset.Update
  442.     data1.Recordset.MoveLast
  443.     text1(0).SetFocus
  444. End Sub
  445.  
  446. Sub Speichern_Change ()
  447.     Static flag
  448.     If flag = 0 Then
  449.       data1.Recordset.Update
  450.         flag = 1
  451.     Else
  452.         flag = 0
  453.     End If
  454. End Sub
  455.  
  456. Sub Wechsel_Click ()
  457.      AppActivate "Microsoft Word"
  458. End Sub
  459.  
  460.