Hi,
I’m more involved with Domino Admin, and thus rather ignorant with Design & Code etc.
I’ve been asked to create a “subroutine” in a Lotusscript agent ie an additional script.
The Help File states you can create additional scripts, but I can’t seem to find out how!!
Does anyone have the patience to explain in “Dummies Talk” how one is able to create an additional script within an existing agent?
Thanks
Ian
Subject: You need to create a new sub or function
at least this is what I get from your post. If you don’t know what a sub or a function is, I would suggest you stay away from this
To do a new sub or function
go e.g. to initialize, place the curser in front of ‘initalize’ click return, write Sub mytestSub(var as String) + Click Return
you should be now in a new area (initalize not visible any longer) and there should be an 'End sub ’ underneath your sub.
Put the curser between in frint of End Sub (seperate line, you might want to create a bunch of empty ones by clicking Return a few more times).
Write some code - e.g.
Messagebox var & " " & Cstr (now)
you can call the new routine from the old code - e.g. as the first line of code underneath initialize
Call mytestSub (“I want this text in the Messagebox”)
Now the code shouls work. Looking at some agents / Script library (e.g. in your Mailfile) you should be either be able to figgure out the same in short time - including on how to do a function- or it is just time to give up or go to classroom.
All this is not tested for accuracy - Good luck.