home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form2
- BorderStyle = 3 'Fester Dialog
- Caption = "Telefonbuch"
- ClientHeight = 3390
- ClientLeft = 3090
- ClientTop = 2700
- ClientWidth = 5355
- Icon = "telefonbuch.frx":0000
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'ZReihenfolge
- ScaleHeight = 3390
- ScaleWidth = 5355
- ShowInTaskbar = 0 'False
- StartUpPosition = 2 'Bildschirmmitte
- Begin VB.Frame Frame2
- Caption = "Eintrag aufnehmen/bearbeiten"
- Height = 2715
- Left = 60
- TabIndex = 5
- Top = 60
- Width = 5232
- Begin VB.TextBox Text1
- Height = 360
- Index = 0
- Left = 120
- TabIndex = 0
- Top = 780
- Width = 4995
- End
- Begin VB.CheckBox ZeroChk
- Caption = "Bei Anruf im gleichen Land der Vorwahlnummer eine Null voranstellen"
- Height = 375
- Left = 120
- TabIndex = 2
- Top = 2100
- Width = 3675
- End
- Begin VB.TextBox Text1
- Height = 360
- Index = 1
- Left = 120
- TabIndex = 1
- Top = 1620
- Width = 4995
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Name des Teilnehmers (Nachname zuerst):"
- Height = 195
- Index = 0
- Left = 120
- TabIndex = 7
- Top = 480
- Width = 3165
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Internationale Telefonnummer des Teilnehmers:"
- Height = 195
- Index = 1
- Left = 120
- TabIndex = 6
- Top = 1320
- Width = 3405
- End
- End
- Begin VB.CommandButton Command1
- Caption = "&Abbrechen"
- Height = 435
- Index = 1
- Left = 2340
- TabIndex = 4
- Top = 2880
- Width = 1455
- End
- Begin VB.CommandButton Command1
- Caption = "&OK"
- Height = 435
- Index = 0
- Left = 3840
- TabIndex = 3
- Top = 2880
- Width = 1455
- End
- Attribute VB_Name = "Form2"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Sub Command1_Click(Index As Integer)
- If Index = 0 Then
- If Not ThisIsANewEntry Then DeleteCurrentNameEntry
- 'keine leer-eingaben erlauben
- If (Text1(0).Text <> "") And (Text1(1).Text <> "") Then
- Form1.NamList(Form1.TabStrip1.SelectedItem.Index).AddItem Trim(Text1(0).Text) + sep + Trim(Text1(1).Text) + "~" + Chr$(48 + ZeroChk.Value)
- End If
- SaveDataFile
- End If
- Unload Me
- End Sub
- Sub Text1_KeyPress(Index As Integer, K As Integer)
- If K = 13 Then
- K = 0
- If Index = 0 Then Text1(1).SetFocus
- If Index = 1 Then Command1(0).SetFocus
- End If
- End Sub
-