Label>Task1
GoSub>Stage1
GoSub>Stage2
GoSub>Stage 3
Label>Task2
GoSub>Stage2
GoSub>Stage 3
etc
I'm trying to design a custom dialogue that asks the user to select 1 of 4 tasks which then jumps to the respective labels but I'm getting very confused and don't really understand what I'm meant to be doing.
My custom dialogue has 4 checkboxes named:
Links
NoLinks
NonMass
Validate
There is also an OK and Cancel button
My code is:
Code: Select all
AddDialogHandler>Dialog1,Links,OnClick,chkBox
AddDialogHandler>Dialog1,NoLinks,OnClick,chkBox
AddDialogHandler>Dialog1,NonMass,OnClick,chkBox
AddDialogHandler>Dialog1,Validate,OnClick,chkBox
Dialog>Dialog1
object Dialog1: TForm
Left = 255
Top = 105
HelpContext = 5000
BorderIcons = [biSystemMenu]
Caption = 'Select Option'
ClientHeight = 211
ClientWidth = 476
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = True
ShowHint = True
OnTaskBar = False
PixelsPerInch = 96
TextHeight = 13
object Label1: TLabel
Left = 24
Top = 32
Width = 293
Height = 13
Caption = 'Please Select What You Want To Do From the Options Below'
end
object NoLinks: TCheckBox
Left = 24
Top = 64
Width = 393
Height = 17
Alignment = taLeftJustify
Caption = 'Repair Mass Ingested Titles Missing Links In The NCC'
TabOrder = 0
end
object Links: TCheckBox
Left = 24
Top = 80
Width = 393
Height = 17
Alignment = taLeftJustify
Caption = 'Repair Mass Ingested Titles That Have Links In The NCC'
TabOrder = 1
end
object NonMass: TCheckBox
Left = 24
Top = 96
Width = 393
Height = 17
Alignment = taLeftJustify
Caption = 'Repair Non Mass Ingested Titles'
TabOrder = 2
end
object Validate: TCheckBox
Left = 24
Top = 113
Width = 393
Height = 17
Alignment = taLeftJustify
Caption = 'Only Validate Rebuilt Titles'
TabOrder = 3
end
object MSButton1: tMSButton
Left = 24
Top = 158
Width = 75
Height = 25
Caption = 'OK'
ModalResult = 1
TabOrder = 4
DoBrowse = False
BrowseStyle = fbOpen
end
object MSButton2: tMSButton
Left = 132
Top = 158
Width = 75
Height = 25
Caption = 'Cancel'
ModalResult = 2
TabOrder = 5
DoBrowse = False
BrowseStyle = fbOpen
end
end
EndDialog>Dialog1
Show>Dialog1,modalResult
If>modalResult=1
Else
Exit>0
Endif
SRT>chkBox
GetDialogProperty>Dialog1,Links,Checked,LinkCheck
GetDialogProperty>Dialog1,NoLinks,Checked,NoLinkCheck
GetDialogProperty>Dialog1,NonMass,Checked,NonMassCheck
GetDialogProperty>Dialog1,Validate,Checked,ValidateCheck
END>chkBox
If>LinkCheck=True
GoTo>Links
Endif
If>NoLinkCheck=True
GoTo>NoLinks
Endif
If>NonMassCheck=True
GoTo>NonMass
Endif
If>ValidateCheck=True
GoTo>Validate
Endif
Any ideas?