home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form StringEdit
- BorderStyle = 1 'Fixed Single
- Caption = "Change String Data"
- ClientHeight = 1365
- ClientLeft = 1965
- ClientTop = 3015
- ClientWidth = 5850
- ClipControls = 0 'False
- Height = 1830
- Left = 1875
- LinkTopic = "Form1"
- ScaleHeight = 1365
- ScaleWidth = 5850
- Top = 2640
- Width = 6030
- Begin VB.CommandButton ButtonCancel
- Cancel = -1 'True
- Caption = "Cancel"
- Height = 375
- Left = 3360
- TabIndex = 3
- Top = 840
- Width = 1095
- End
- Begin VB.CommandButton ButtonOK
- Caption = "OK"
- Default = -1 'True
- Height = 375
- Left = 4560
- TabIndex = 2
- Top = 840
- Width = 1095
- End
- Begin VB.TextBox ValueString
- Height = 285
- Left = 240
- TabIndex = 0
- Top = 360
- Width = 5415
- End
- Begin VB.Label Label1
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "String:"
- Height = 255
- Left = 120
- TabIndex = 1
- Top = 120
- Width = 975
- End
- Attribute VB_Name = "StringEdit"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- ' Cancel Button. Unloads the dialog box without
- ' causing any changes.
- Private Sub ButtonCancel_Click()
- Unload StringEdit
- End Sub
- ' OK Button. Unloads the dialog box, putting the
- ' changes in global variables so that the base form
- ' can act on them.
- Private Sub ButtonOK_Click()
- GlobalValueVariant = ValueString.Text
- GlobalValueSize = Len(GlobalValueVariant)
- If (GlobalValueSize > 0) Then
- If Mid$(GlobalValueVariant, Len(GlobalValueVariant), 1) <> Chr(0) Then
- GlobalValueVariant = GlobalValueVariant & Chr(0)
- End If
- End If
- GlobalValueChanged = True
- Unload StringEdit
- End Sub
- ' Set the editbox to the old value.
- Private Sub Form_Load()
- ValueString.Text = CStr(GlobalValueVariant)
- End Sub
-