-
Topic
-
hi,
im a newbie using vbs & formativ.
my question, how can i create a applet with a toolbar button.
if the button is pressed a certain string should be added in the subject. (button is marked is pressed)
if i press the button again the string should be removed from the subject. (button is marked as not aktiv)
this is my beginning for adding the string
Sub Main(Client, GWEvent)
dim OldSubject
dim AddSubject
call GroupWise.FocusSet(9, "")
OldSubject = GroupWise.ItemGetText("X00", 9)
AddSubject = "[somestring] "
If (InStr(1, OldSubject, AddSubject, vbTextCompare) > 0) then
call GroupWise.ItemSetText("X00", 9,OldSubject, false)
else
call GroupWise.ItemSetText("X00", 9,AddSubject + OldSubject, false)
end if
End Subthx for your help
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.