sub Process_Globals
Private listSegmentControl As List
end sub
Sub CreateSegmentControl
Dim sc As SegmentedControl
Dim oSCItems() As String=Array As String("Yes","No")
sc.Initialize("seq"&iSegmentControlCounter)
sc.Tag=sTestId
sc.SetItems(oSCItems)
If sTestIdValue="True" Then
sc.SelectedIndex=0
Else
sc.SelectedIndex=1
End If
ScrollViewInput.Panel.AddView(sc,200dip,iRowOffset,50%x,40dip)
iRowOffset=iRowOffset+80
listSegmentControl.Add(sc)
end sub
sub cmdSave_Click
Dim oSegmentControl As SegmentedControl
For i=0 To listSegmentControl.Size-1
oSegmentControl=listSegmentControl.Get(i)
sTestId=oSegmentControl.Tag
If oSegmentControl.SelectedIndex=0 Then
sTestValue="Y"
Else
sTestValue="N"
End If
Next
end sub