Article ID: 104943
Article Last Modified on 12/9/2003
Sub CGroup_Click ()
Dim cmd As String
On Error GoTo CGError
text1.LinkMode = 0
text1.LinkTopic = "Progman|Progman"
text1.LinkMode = 2
cmd = "[CreateGroup(" + GGroup.Text + ")]"
text1.LinkExecute cmd
CGDone: text1.LinkMode = 0
Exit Sub
CGError:
MsgBox "Error Adding Group"
Resume CGDone
End Sub
Sub DGroup_Click ()
Dim cmd As String
On Error GoTo DGError
text1.LinkMode = 0
text1.LinkTopic = "Progman|Progman"
text1.LinkMode = 2
cmd = "[DeleteGroup(" + GGroup.Text + ")]"
text1.LinkExecute cmd
DGDone: text1.LinkMode = 0
Exit Sub
DGError:
MsgBox "Error Deleting Group"
Resume DGDone
End Sub
Sub SGroup_Click ()
Dim cmd As String
On Error GoTo SGError
text1.LinkMode = 0
text1.LinkTopic = "Progman|Progman"
text1.LinkMode = 2
cmd = "[ShowGroup(" + GGroup.Text + ", 2" + ")]"
text1.LinkExecute cmd
cmd = "[ShowGroup(" + GGroup.Text + ", 1" + ")]"
text1.LinkExecute cmd
SGDone:
text1.LinkMode = 0
Exit Sub
SGError:
MsgBox "Error Showing Group"
Resume SGDone
End Sub
Sub Reload_Click ()
Dim cmd As String
On Error GoTo RLError
text1.LinkMode = 0
text1.LinkTopic = "Progman|Progman"
text1.LinkMode = 2
cmd = "[Reload(" + GGroup.Text + ")]"
text1.LinkExecute cmd
RLDone: text1.LinkMode = 0
Exit Sub
RLError:
MsgBox "Error Reloading Group"
Resume RLDone
End Sub
Sub AItem_Click ()
Dim cmd As String
On Error GoTo AIError
text1.LinkMode = 0
text1.LinkTopic = "Progman|Progman"
text1.LinkMode = 2
'*** The ShowGroup is necessary because AddItem changes the group
'*** with the focus. ShowGroup forces the group you want the
'*** action taken to get the focus.
If (Len(GGroup.Text) > 0) Then
cmd = "[ShowGroup(" + GGroup.Text + ", 2" + ")]"
text1.LinkExecute cmd
cmd = "[ShowGroup(" + GGroup.Text + ", 1" + ")]"
text1.LinkExecute cmd
End If
cmd = "[Additem(" + ItemExe.Text + "," + GItem.Text + ")]"
text1.LinkExecute cmd
AIDone:
text1.LinkMode = 0
Exit Sub
AIError:
MsgBox "Error adding Item"
Resume AIDone
End Sub
Sub DItem_Click ()
Dim cmd As String
On Error GoTo DIError
text1.LinkMode = 0
text1.LinkTopic = "Progman|Progman"
text1.LinkMode = 2
'*** ShowGroup is necessary because DeleteItem changes the group
'*** with the focus. ShowGroup forces the group you want the action
'*** taken to get the focus.
If (Len(GGroup.Text) > 0) Then
cmd = "[ShowGroup(" + GGroup.Text + ", 2" + ")]"
text1.LinkExecute cmd
cmd = "[ShowGroup(" + GGroup.Text + ", 1" + ")]"
text1.LinkExecute cmd
End If
cmd = "[DeleteItem(" + GItem.Text + ")]"
text1.LinkExecute cmd
DIDone: text1.LinkMode = 0
Exit Sub
DIError:
MsgBox "Error Deleting Item"
Resume DIDone
End Sub
Sub RItem_Click ()
Dim cmd As String
On Error GoTo RIError
text1.LinkMode = 0
text1.LinkTopic = "Progman|Progman"
text1.LinkMode = 2
'*** ShowGroup forces the group you want the action taken on
'*** to get the focus.
If (Len(GGroup.Text) > 0) Then
cmd = "[ShowGroup(" + GGroup.Text + ", 2" + ")]"
text1.LinkExecute cmd
cmd = "[ShowGroup(" + GGroup.Text + ", 1" + ")]"
text1.LinkExecute cmd
End If
cmd = "[ReplaceItem(" + GItem.Text + ")]"
text1.LinkExecute cmd
cmd = "[Additem(" + ItemExe.Text + "," + GItem.Text + ")]"
text1.LinkExecute cmd
RIDone:
text1.LinkMode = 0
Exit Sub
RIError:
MsgBox "Error Replacing Item"
Resume RIDone
End Sub
Additional query words: 1.00 2.00 3.00
Keywords: kbcode KB104943