home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmMain
- BorderStyle = 1 'Fixed Single
- Caption = "Log Error"
- ClientHeight = 705
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 1410
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 705
- ScaleWidth = 1410
- StartUpPosition = 2 'CenterScreen
- Begin VB.CommandButton cmdGenerateError
- Caption = "&Generate Error"
- Height = 495
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 1215
- End
- Attribute VB_Name = "frmMain"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdGenerateError_Click()
- Dim UserID As String
- Dim ErrNum As Integer
- Dim ErrDes As String
- Dim FormName As String
- Dim SubName As String
- Dim intRandom As Integer
- Randomize ' Initialize random-number generator.
- intRandom = Int((3000 * Rnd) + 1) ' Generate random value
- ' between 1 and 6.
- UserID = GetUser
- SubName = "cmdGenerateError_Click()"
- FormName = "frmMain"
- On Error GoTo LocalErr:
- Err.Raise intRandom
- Exit Sub
- LocalErr:
- basLogErrors.LogErrors FormName, SubName, UserID, Err.Number, Err.Description
- End Sub
-