Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: Trouble with DeleteMessage and an Array. Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 19 February 2005 at 5:22pm | IP Logged Quote Guests

I have a hidden field that contains the messageIDs (1,2,3) etc...seperated by a comma.

When I run the section of code below, the DeleteMessage throws: Type mismatch: 'DeleteMessage'.

The message is still deleted, however.

I have tried using Cint and Cstr on the array with no luck, any suggestions?

---------------------------------------
DeleteMSG = Request.Form("hidStuff")
arrDeleteMSG = Split(DeleteMSG,",")

     For i = 0 to Ubound(arrDeleteMSG)
           mailPOP3.DeleteMessage arrDeleteMSG(i)
     next
Back to Top View Guests's Profile Search for other posts by Guests
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 20 February 2005 at 7:45am | IP Logged Quote Alex

I think hidStuff contains incorrect data. For debug, try this:

DeleteMSG = Request.Form("hidStuff")
arrDeleteMSG = Split(DeleteMSG,",")

     For i = 0 to Ubound(arrDeleteMSG)
            Response.Write "[" & arrDeleteMSG(i) & "]"
     next

I guess the output will be like this:
[1][2][3][]

E.g. empty element (or whatever but not a number) appears in the array.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 20 February 2005 at 12:59pm | IP Logged Quote Guests

Good call.
Back to Top View Guests's Profile Search for other posts by Guests
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide