| Author |  | 
      
        | Guests Guest Group
 
  
 
 Joined: 10 November 2003
 Online Status: Online
 Posts: 262
 | 
          I have a hidden field that contains the messageIDs (1,2,3) etc...seperated by a comma.
           | Posted: 19 February 2005 at 5:22pm | IP Logged |   |  
           | 
 |  
 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 |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          I think hidStuff contains incorrect data. For debug, try this:
           | Posted: 20 February 2005 at 7:45am | IP Logged |   |  
           | 
 |  
 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 |     | 
       
       
        |  | 
        | Guests Guest Group
 
  
 
 Joined: 10 November 2003
 Online Status: Online
 Posts: 262
 | 
          Good call.
           | Posted: 20 February 2005 at 12:59pm | IP Logged |   |  
           | 
 |  
 | 
       
        | Back to Top |     | 
       
       
        |  |