Hello.
I am trying to record all values on contact open event and save them to array.
I have two arrays. cData, which will store data from object objContact and pName which already stores names of custom fields in contact.
If I type
cData(i) = objContact.UserProperties("(040) ID person") ,
everything works ok, but if I type
cData(i) = objContact.UserProperties(pName(i)) ,
I get run-time error 91. And pName(i) have the same data as I typed it in the first line that works.
Can someone help me and explain what's happening.
Thanks.
I am trying to record all values on contact open event and save them to array.
I have two arrays. cData, which will store data from object objContact and pName which already stores names of custom fields in contact.
If I type
cData(i) = objContact.UserProperties("(040) ID person") ,
everything works ok, but if I type
cData(i) = objContact.UserProperties(pName(i)) ,
I get run-time error 91. And pName(i) have the same data as I typed it in the first line that works.
Can someone help me and explain what's happening.
Thanks.