home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmHelp
- BackColor = &H00808000&
- Caption = "Notes about the Protoype Random Access Application"
- ClientHeight = 5400
- ClientLeft = 1800
- ClientTop = 1695
- ClientWidth = 7665
- Height = 5805
- Left = 1740
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 5400
- ScaleWidth = 7665
- Top = 1350
- Width = 7785
- Begin CommandButton cmdOK
- Caption = "&OK"
- Height = 375
- Left = 135
- TabIndex = 0
- Top = 4920
- Width = 7440
- End
- Begin TextBox txtMsg
- Height = 4785
- Left = 90
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 1
- Top = 60
- Width = 7485
- End
- Option Explicit
- Dim findChanged As Integer
- Sub cmdOK_Click ()
- SAVEFILE
- Unload Me
- End Sub
- Sub Form_Load ()
- Me.Move ((Screen.Width - Me.Width) / 2), ((Screen.Height - Me.Height) / 2)
- LOADFILE
- End Sub
- Sub Form_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
- If Button = 2 Then 'Right Mouse Button Clicked
- SAVEFILE
- End If
- End Sub
- Sub LOADFILE ()
- On Error GoTo TextLoadError
- Dim strFilename As String
- Dim intChannel As Integer
- intChannel = FreeFile
- strFilename = App.Path & "\help.txt"
- Open strFilename For Input As intChannel
- txtMsg = Input$(LOF(intChannel), intChannel)
- findChanged = False
- Exiter:
- Close #intChannel
- Exit Sub
- TextLoadError:
- MsgBox "Error opening help.txt file" & Chr$(13) & Error$
- Resume Exiter
- End Sub
- Sub SAVEFILE ()
- On Error GoTo TextSaveError
- Dim strFilename As String
- Dim intChannel As Integer
- intChannel = FreeFile
- strFilename = App.Path & "\help.txt"
- Open strFilename For Output As intChannel
- Print #intChannel, txtMsg.Text
- If findChanged = True Then
- MsgBox "Help.txt file was updated and saved OK", , "Random Access Help Panel"
- findChanged = False
- End If
- ExitSave:
- Close #intChannel
- Exit Sub
- TextSaveError:
- MsgBox "Error saving help.txt file" & Chr$(13) & Error$
- Resume ExitSave
- End Sub
- Sub txtMsg_Change ()
- findChanged = True
- End Sub
- Sub txtMsg_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
- If Button = 2 Then 'Right Mouse Button Clicked
- SAVEFILE
- End If
- End Sub
-