Hi, I am trying to perform mxlookup using mailman. Here goes the code:
How can i resolve this? Is it a bug?
asked Nov 27 '12 at 17:42
MxLookupAll returns a Chilkat.StringArray object. Just because the word "Array" is in the name of a class does not mean it's an array. A Chilkat.StringArray is an object that contains a collection of strings which may be accessed via an index, not as an array, but via the GetString(index) method call.
Dim mailman As New Chilkat.MailMan() mailman.UnlockComponent("My Code") Dim sa As Chilkat.StringArray sa = mailman.MxLookupAll("yahoo.ca") if sa is nothing then ... else TextBox1.Text = sa.GetString(0) end if
answered Nov 27 '12 at 19:57