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)
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)
call GroupWise.ItemSetText("X00", 9,AddSubject + OldSubject, false)
thx for your help
- You must be logged in to reply to this topic.