LotusScript Lists

Lists and Classes
• Classes allow us to bind complex data and operations.
• List allows us to look these up quickly in memory.
– Example: Lets extend our Person class:
dim People list as Person
dim PeopleByUNID list as Person
Dim P as new Person(“Joe Bloggs/ACME”, “010101010201020”)
....
set People(P.getName) = P
set PeolpeByUNID(P.getUNID) = P
if (isElement(People(“Joe Bloggs/ACME”))) then _
Print “Joe's UNID is: “ + People(“Joe Bloggs/ACME”).getUNID.
if (isElement(PeopleByUNID(“010101010201020”))) then _
Print “UNID “010101010201020” is: “ + _
PeopleByUNID(“010101010201020”).getName

March 2010

Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Archives

Powered by Movable Type 4.34-en

About this Entry

This page contains a single entry by philipz published on March 15, 2007 10:56 PM.

LotusScript傳值到IE was the previous entry in this blog.

第二層皮膚 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.