Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I create a global Subroutine?

0 views
Skip to first unread message

nant...@hotmail.com

unread,
Oct 21, 1997, 3:00:00 AM10/21/97
to

Hi All,

I am trying to declare a subroutine at the DB level (i.e. not tied to
a form or field etc). It is fairly simple and acts on some shared fields
(and ONLY shared fields).

Where would I dclare it? Currently I have multiple copies of it in
the 'Globals' section of each form (there are three forms in this DB).

This is not exactly modular programming :-)

Thanks a lot,

Paul
P.S. I am using Notes 4.0

-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet

Michael Dabisch

unread,
Oct 21, 1997, 3:00:00 AM10/21/97
to nant...@hotmail.com

Here's something you don't want to hear. Only starting in Notes 4.5 can
you do this with the script libraries. The best you can do in Notes 4
is what you're doing - form by form.


Guillaume Deudon

unread,
Oct 22, 1997, 3:00:00 AM10/22/97
to

There is a dedicated "Script Library" design area provided for each
database that allows you to design script modules that are global to one
database (user defined LSX modules).
I think i remember this is one of the major changes form r4.0 to r4.5.

In your case, why don't you define a 'subform' including the shared
fields and the globals routines associated with some buttons or fields.
This subform could be included in any other form an viewed as a global
subform containing global routines (unless subforms are not available in
r4.0).

--
Guillaume DEUDON
Alcatel ISR - 3 Rue Ampere - 91349 MASSY Cedex - FRANCE
voice:(+33) 1.69.76.25.71
fax:(+33) 1.69.76.24.98
mailto:Guillaum...@isr.alcatel-alsthom.fr

Steven Massi

unread,
Oct 22, 1997, 3:00:00 AM10/22/97
to

If you are below R4.5 you should be able to write your subroutine into a
text file with an .LSS extention. Then when you need to use that routine
you do an %Include xxxxxxx.lss in the module you are working with. This
is not truly a subroutine and the text from the .LSS is actually compiled
into the module you are working in but at least you wouldn't have to
manually enter the code into each module. If you are not familiar with
using .LSS files the info is in the help database and is worth looking
into. .LSS files also get you around the 15k code limitation in the script
editor.

nant...@hotmail.com wrote in article <8774582...@dejanews.com>...

0 new messages