-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Critter
Sent: 9. mai 2001 14:47
To: CF-Talk
Subject: Re: COM & CFLOOP error
Hmmm..
That doesn't work either.....
I don't know if the problem lies
in CF or the object itself
Now my code is like this:
<cfobject action="create" class="POP3svg.Mailer" type="COM" name="Mailer">
<cfset Mailer.GetPopHeaders(1)>
<cfloop collection="#Mailer#" item="akey">
<cfoutput>
#akey.MessageInfo#
</cfoutput>
</cfloop>
Critter wrote:
when you loop thru a structure or collection the "item" is your
key field so try
outputting #akey.messageInfo#
--
Best regards,
Critter
-------------------------------------------
Wednesday, May 09, 2001, 8:21:38 S2k, you wrote:
PK> Hi all :)
PK> Im trying to loop thru a object structure with no luck.
PK> Im using an object from Serverobjects called AspPop3, and everything
PK> works fine, except when i try to loop thru a variant that is returned
from
PK> the object.
PK> The structure i'm trying to output is explained in the documentation
from
PK> serverobjects:
PK> "The MessageInfo property returns the header data that is received from
a
PK> call
PK> to GetPopHeaders. After a call to GetPopHeaders, and if there are
messages
PK> on the server,
PK> this property is a variant array of variant arrays that contains
information
PK> about the messages
PK> on the server.
PK> Values returned are:
PK> intMessageID, strSubject, strDate, strFrom, strSender ,strTo,
strReplyTo,
PK> intSize, strStatus."
PK> The error i get is this one:
PK> --------------------------------------------------------------
PK> Loop error
PK> Error on Invoke for: /nCOM error 0x80020003. Member not found.
PK> ----------------------------------------------------------------
PK> My code is (something) like this:
PK> (And i've tried any combinations in the loop that i can
PK> think of, using different collection parameters like "#mailer#",
PK> "#mailer.mesageinfo#" etc.
PK> <cfobject action="create" class="POP3svg.Mailer" type="COM"
name="Mailer">
PK> <cfset Mailer.RemoteHost = attributes.server>
PK> <cfset Mailer.UserName = attributes.username>
PK> <cfset Mailer.PassWord = attributes.password>
PK> <cfset Mailer.MailDirectory = attributes.attachmentpath>
PK> <cfset Mailer.GetPopHeaders(1)>
PK> <cfloop collection="#Mailer#" item="akey">
PK> <cfoutput>
PK> #MessageInfo#
PK> </cfoutput>
PK> </cfloop>
PK> If anyone could help me out with this one, I would be very, very, very
PK> happy...
PK> regards
PK> Per
PK>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists