MODIFIED SOURCE CODE FOR NEWPW.FRM
Made on Tuesday, Apr 8, 2003 at 9:43 AM
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
'WAS: BUTTON2 = "&Cancel"
BUTTON2 = LoadResString(S84_Cancel)
End Property
'This was: Const Label1 = "&Old Password:"
Property Get Label1 As String
'WAS: Label1 = "&Old Password:"
Label1 = LoadResString(S356_Old_Password)
End Property
'This was: Const Label2 = "&New Passsord:"
Property Get Label2 As String
'WAS: Label2 = "&New Passsord:"
Label2 = LoadResString(S336_New_Passsord)
End Property
'This was: Const LABEL3 = "&Verify:"
Property Get LABEL3 As String
'WAS: LABEL3 = "&Verify:"
LABEL3 = LoadResString(S580_Verify)
End Property
'This was: Const MSG1 = "Invalid New Password Verification, try again."
Property Get MSG1 As String
'WAS: MSG1 = "Invalid New Password Verification, try again."
MSG1 = LoadResString(S304_Invalid_New_Passwor)
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.
'WAS: Me.Caption = "New Password"
Me.Caption = LoadResString(S337_New_Password)
'WAS: cmdCancel.Caption = "&Cancel"
cmdCancel.Caption = LoadResString(S84_Cancel)
'WAS: cmdOK.Caption = "&OK"
cmdOK.Caption = LoadResString(S355_OK)
'WAS: lblLabels(2).Caption = "Verify:"
lblLabels(2).Caption = LoadResString(S581_Verify)
'WAS: lblLabels(1).Caption = "New Password:"
lblLabels(1).Caption = LoadResString(S338_New_Password)
'WAS: lblLabels(0).Caption = "Old Password:"
lblLabels(0).Caption = LoadResString(S357_Old_Password)
End Sub