ORIGINAL SOURCE CODE FOR NEWPW.FRM

Made on Tuesday, Apr 8, 2003 at 9:43 AM

http://www.resourcemining.com

NEWPW.FRM contained 11 resource strings and 2 non-user interface strings.

Option Explicit
'>>>>>>>>>>>>>>>>>>>>>>>>
Const FORMCAPTION = "Set Password"
'ResMe Converted To A Property: Const BUTTON1 = "&OK"
'ResMe Converted To A Property: Const BUTTON2 = "&Cancel"
'ResMe Converted To A Property: Const Label1 = "&Old Password:"
'ResMe Converted To A Property: Const Label2 = "&New Passsord:"
'ResMe Converted To A Property: Const LABEL3 = "&Verify:"
'ResMe Converted To A Property: Const MSG1 = "Invalid New Password Verification, try again."
'>>>>>>>>>>>>>>>>>>>>>>>>


Private Sub cmdCancel_Click()
  Unload Me
End Sub

Private Sub cmdOK_Click()
  On Error GoTo OKErr
  
  Dim sTmp As String
  Dim usr As User
  
  If txtNewPW.Text <> txtVerify.Text Then
    Beep
    MsgBox MSG1, 48
    txtVerify.SetFocus
    Exit Sub
  End If
  
  gwsMainWS.Users(gwsMainWS.UserName).NewPassword txtOldPW.Text, txtNewPW.Text
  
  Unload Me
  Exit Sub
  
OKErr:
  ShowError
End Sub

Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
  If KeyCode = vbKeyF1 And Shift = 0 Then
    DisplayTopic 2016136
  End If
End Sub

Private Sub Form_Load()
    'ResMe autogenerated line of code to call the initialization routine that was automatically generated.
    Call frmNewPassword_Auto_Init
  Me.Caption = FORMCAPTION
  cmdOK.Caption = BUTTON1
  cmdCancel.Caption = BUTTON2
  lblLabels(0).Caption = Label1
  lblLabels(1).Caption = Label2
  lblLabels(2).Caption = LABEL3
End Sub


'*********************************************************************************
'**          This Section Of Code Was Automatically Generated By ResMe          **
'**                                                                             **
'** String assignments to Constants have been converted to read-only properties **
'*********************************************************************************


'This was: Const BUTTON1 = "&OK"
Property Get BUTTON1 As String
    BUTTON1 = "&OK"
End Property

'This was: Const BUTTON2 = "&Cancel"
Property Get BUTTON2 As String
    BUTTON2 = "&Cancel"
End Property

'This was: Const Label1 = "&Old Password:"
Property Get Label1 As String
    Label1 = "&Old Password:"
End Property

'This was: Const Label2 = "&New Passsord:"
Property Get Label2 As String
    Label2 = "&New Passsord:"
End Property

'This was: Const LABEL3 = "&Verify:"
Property Get LABEL3 As String
    LABEL3 = "&Verify:"
End Property

'This was: Const MSG1 = "Invalid New Password Verification, try again."
Property Get MSG1 As String
    MSG1 = "Invalid New Password Verification, try again."
End Property


Private Sub frmNewPassword_Auto_Init()
'This routine initializes all User Interface control properties on frmNewPassword.
'This section of code was automatically generated by the ResMe String Extraction Utility.
    Me.Caption = "New Password"
    cmdCancel.Caption = "&Cancel"
    cmdOK.Caption = "&OK"
    lblLabels(2).Caption = "Verify:"
    lblLabels(1).Caption = "New Password:"
    lblLabels(0).Caption = "Old Password:"
End Sub