RE: Grabbing data from 2 dimensional array Stan Rogers 17.Feb.12 01:22 PM Lotus Notes Applications Development 6.5.4Windows 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") = "firstname.lastname@example.org"
TechList("Jane Doe") = "email@example.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))
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.