gi11ies
Programmer
- Mar 26, 2002
- 52
Im trying to put the contents of an two dimensional array that is stored in a session into the body of an email that is generated, but am getting an error thrown at my for loop line.
The main parts of code I have are for the array are:
cartArray = Session("cartArray") '
intCartMaxUsed = Session("intCartMaxUsed")
intCartItem = 0
.
.
.
strBody = "First Name:" & strFirst & vbCrLf & _
"Last Name: " & strLast & vbCrLf & _
"E-mail: " & strEmail & vbCrLf & _
"Order Total: " & intOrderTotal & vbCrLf & _
"Product Price Qty Total" & vbCrLf & _
"-------------------------------------" & vbCrLf & _
For intCartItem = 0 to intCartMaxUsed
cartArray(0,intCartItem) & " " & cartArray(2,intCartItem) & " " & cartArray(3,intCartItem) & " " & cartArray(4,intCartItem) & vbCrLf & _
Next
.
.
.
sendMail strFrom, strTo, strSubject, strBody
If anyone has any advice on where I am going wrong, it would be great!
Gillies
The main parts of code I have are for the array are:
cartArray = Session("cartArray") '
intCartMaxUsed = Session("intCartMaxUsed")
intCartItem = 0
.
.
.
strBody = "First Name:" & strFirst & vbCrLf & _
"Last Name: " & strLast & vbCrLf & _
"E-mail: " & strEmail & vbCrLf & _
"Order Total: " & intOrderTotal & vbCrLf & _
"Product Price Qty Total" & vbCrLf & _
"-------------------------------------" & vbCrLf & _
For intCartItem = 0 to intCartMaxUsed
cartArray(0,intCartItem) & " " & cartArray(2,intCartItem) & " " & cartArray(3,intCartItem) & " " & cartArray(4,intCartItem) & vbCrLf & _
Next
.
.
.
sendMail strFrom, strTo, strSubject, strBody
If anyone has any advice on where I am going wrong, it would be great!
Gillies