Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext

RE: Grabbing data from 2 dimensional array
Stan Rogers 17.Feb.12 01:22 PM Lotus Notes
Applications Development 6.5.4 Windows XP


To answer the data question first, a List would be a much better choice for your name-value map than a two-dimensional array:

Dim TechList List As String
TechList("Joe Dirt") = "joe.dirt@gmail.com"
TechList("Jane Doe") = "jane.doe@gmail.com")

Getting the data back out of a list couldn't be simpler:

Forall TechValue In Requester.Values
If IsElement(TechList(TechValue)) Then
'This line sends the email
Call AdviseDoc.Send( False, TechList(TechValue))
Exit Forall
End If
End Forall

Lists are just about the handiest darn things in Lotusscript -- make friends with them and they will make your life a lot simpler AND often make your code many times faster. Lists have to use strings as tags (the "name" part of the name-value pair), and those tags have to be unique in the list, but the value part can be just about anything, including the basic data types, variants (including arrays), objects and user-defined data types.

As for the "Object variable not set" error, I'd suggest looking at the spelling of the field name -- you've used "Requester" in your variable, but "Requestor" in your GetFirstItem call.




Grabbing data from 2 dimensional ar... (Shawn Pelletier... 17.Feb.12)
. . RE: Grabbing data from 2 dimensiona... (Stan Rogers 17.Feb.12)
. . RE: Grabbing data from 2 dimensiona... (Carl Tyler 17.Feb.12)
. . . . RE: Grabbing data from 2 dimensiona... (Shawn Pelletier... 20.Feb.12)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

Sign In or Register

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow