Avatar of Tra71
Tra71

asked on 

Remove duplicates from array

Hi,

I have an array and I want to remove the duplicates from it, then append to records.  I've looked here and can't seem to get any one the examples to work for me. Help! :)  

Here's my code for the array:

n = 0
		strRecords = ""
		
			For Each Item In Request.Form
				If Left(Item,5) = "Mail_" Then
					If Request.Form(Item) = "on" Then
												
						nRecID = Replace(Item,"Mail_","")
						
						n = n + 1
						strFileName = Request.Form("RecordID_" & nRecID)
						strRecords = strRecords & strFileName & ";"					
					
					End If
				End If	
			Next
	
		strRecords = Left(strRecords, Len(strRecords) - 1)%>

Open in new window

ASP

Avatar of undefined
Last Comment
Tra71

8/22/2022 - Mon