MODIFIED SOURCE CODE FOR SEEK.FRM
Made on Tuesday, Apr 8, 2003 at 9:43 AM
Option Explicit
'>>>>>>>>>>>>>>>>>>>>>>>>
'ResMe Converted To A Property: Const FORMCAPTION = "Seek Parameters"
'ResMe Converted To A Property: Const BUTTON1 = "&OK"
'ResMe Converted To A Property: Const BUTTON2 = "&Cancel"
'ResMe Converted To A Property: Const Label1 = "Operator:"
'ResMe Converted To A Property: Const Label2 = "&Value:"
'>>>>>>>>>>>>>>>>>>>>>>>>
Private Sub cmdCancel_Click()
gsSeekValue = vbNullString
txtSeekValue.SetFocus
Me.Hide
End Sub
Private Sub optSeekOperator_Click(Index As Integer)
txtSeekValue.SetFocus
End Sub
Private Sub txtSeekValue_Change()
If Len(txtSeekValue.Text) = 0 Then
cmdOK.Enabled = False
Else
cmdOK.Enabled = True
End If
End Sub
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF1 And Shift = 0 Then
DisplayTopic 2016143
End If
End Sub
Private Sub Form_Load()
'ResMe autogenerated line of code to call the initialization routine that was automatically generated.
Call frmSeek_Auto_Init
Me.Caption = FORMCAPTION
cmdOK.Caption = BUTTON1
cmdCancel.Caption = BUTTON2
lblLabels(0).Caption = Label1
lblLabels(1).Caption = Label2
End Sub
Private Sub cmdOK_Click()
If optSeekOperator(0).Value Then
gsSeekOperator = "="
ElseIf optSeekOperator(1).Value Then
gsSeekOperator = ">="
ElseIf optSeekOperator(2).Value Then
gsSeekOperator = "<="
ElseIf optSeekOperator(3).Value Then
gsSeekOperator = ">"
ElseIf optSeekOperator(4).Value Then
gsSeekOperator = "<"
End If
gsSeekValue = txtSeekValue
txtSeekValue.SetFocus
Me.Hide
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 FORMCAPTION = "Seek Parameters"
Property Get FORMCAPTION As String
'WAS: FORMCAPTION = "Seek Parameters"
FORMCAPTION = LoadResString(S478_Seek_Parameters)
End Property
'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 = "Operator:"
Property Get Label1 As String
'WAS: Label1 = "Operator:"
Label1 = LoadResString(S385_Operator)
End Property
'This was: Const Label2 = "&Value:"
Property Get Label2 As String
'WAS: Label2 = "&Value:"
Label2 = LoadResString(S575_Value)
End Property
Private Sub frmSeek_Auto_Init()
'This routine initializes all User Interface control properties on frmSeek.
'This section of code was automatically generated by the ResMe String Extraction Utility.
'WAS: Me.Caption = "Seek"
Me.Caption = LoadResString(S477_Seek)
'WAS: cmdCancel.Caption = "&Cancel"
cmdCancel.Caption = LoadResString(S84_Cancel)
'WAS: cmdOK.Caption = "&OK"
cmdOK.Caption = LoadResString(S355_OK)
'WAS: lblLabels(1).Caption = "Value: "
lblLabels(1).Caption = LoadResString(S577_Value)
'WAS: lblLabels(0).Caption = "Operator: "
lblLabels(0).Caption = LoadResString(S386_Operator)
End Sub