home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form BoolCond
- BackColor = &H00C0C0C0&
- Caption = "Boolean Condition"
- ClientHeight = 5925
- ClientLeft = 5400
- ClientTop = 1455
- ClientWidth = 4230
- Height = 6330
- Left = 5340
- LinkTopic = "Form3"
- ScaleHeight = 5925
- ScaleWidth = 4230
- Top = 1110
- Width = 4350
- Begin SSPanel StatusBar
- Alignment = 1 'Left Justify - MIDDLE
- BevelWidth = 2
- BorderWidth = 1
- Height = 510
- Left = 0
- TabIndex = 11
- Top = 5445
- Width = 4245
- End
- Begin CommandButton Command1
- Caption = "Ok"
- Height = 420
- Left = 1530
- TabIndex = 9
- Top = 4860
- Width = 1275
- End
- Begin SSPanel Panel3D1
- Alignment = 1 'Left Justify - MIDDLE
- BevelInner = 1 'Inset
- BevelWidth = 2
- BorderWidth = 1
- Height = 4335
- Left = 180
- TabIndex = 0
- Top = 405
- Width = 3795
- Begin SSFrame Frame3D2
- ForeColor = &H00000000&
- Height = 2940
- Left = 180
- TabIndex = 2
- Top = 900
- Width = 3435
- Begin SSOption Option3D1
- Caption = "Change when Next is No"
- Height = 240
- Index = 5
- Left = 180
- TabIndex = 8
- TabStop = 0 'False
- Top = 2340
- Width = 2445
- End
- Begin SSOption Option3D1
- Caption = "Change when Next is Yes"
- Height = 330
- Index = 4
- Left = 180
- TabIndex = 7
- TabStop = 0 'False
- Top = 1890
- Width = 2715
- End
- Begin SSOption Option3D1
- Caption = "On every No"
- Height = 330
- Index = 3
- Left = 180
- TabIndex = 6
- TabStop = 0 'False
- Top = 1485
- Width = 2265
- End
- Begin SSOption Option3D1
- Caption = "On every Yes"
- Height = 375
- Index = 2
- Left = 180
- TabIndex = 5
- TabStop = 0 'False
- Top = 1035
- Width = 2175
- End
- Begin SSOption Option3D1
- Caption = "Change from Yes to No"
- Height = 375
- Index = 1
- Left = 180
- TabIndex = 4
- TabStop = 0 'False
- Top = 630
- Width = 2265
- End
- Begin SSOption Option3D1
- Caption = "Change from No to Yes"
- Height = 375
- Index = 0
- Left = 180
- TabIndex = 3
- Top = 225
- Value = -1 'True
- Width = 2895
- End
- End
- Begin SSFrame Frame3D1
- ForeColor = &H00000000&
- Height = 600
- Left = 180
- TabIndex = 1
- Top = 225
- Width = 3435
- Begin Label Label1
- BackColor = &H00C0C0C0&
- Caption = "Select Group Boolean Condition"
- Height = 240
- Left = 90
- TabIndex = 10
- Top = 225
- Width = 2895
- End
- End
- End
- Sub Command1_Click ()
- 'Set the group condition based on the boolean condition set in the radio buttons
- If PESetGroupCondition(JobNum, 3000, GroupCond.Text1.Text, BoolCond1, Sortdir) = False Then
- RCode = GetErrorString(JobNum)
- MsgBox "PESetGroupCondition Error #: " + Str(ErrorCode) + " - " + RCode
- Else
- GroupCond!Statusbar.Caption = "Group Condition has been set."
- GroupCond.Command1.Visible = False
- End If
- Unload Me
- End Sub
- Sub Option3D1_Click (Index As Integer, Value As Integer)
- 'Specify Boolean Condition
- Select Case Index
- Case 0:
- BoolCond1 = 1
- Case 1:
- BoolCond1 = 2
- Case 2:
- BoolCond1 = 3
- Case 3:
- BoolCond1 = 4
- Case 4:
- BoolCond1 = 5
- Case 5
- BoolCond1 = 6
- End Select
- End Sub
-