|
|
 |
Re: FN-FORUM asp/vbscript shoppingcart problem
date posted 18th January 2001 17:01
noooo! :)
the for...next is a loop if you concat a string as so:
str1=""
for a =0 to 4
str1=str1&a&": "
next
if you write out str1 now you get - "0: 1: 2: 3: 4: "
then youd create the email object and use the concat'd string as the body
same thing applies here you create a string by looping through the items,
when the loop is complete you have a list of items in the string - this will
be placed in the body of the email, which is a seperate entity from the
cart - the cart provide the content, the email the container.
best advice i can give rob is get hold of visual interdev (warez sites
aplenty out there), the book ASP unleashed, and a guide to vbscript and
you'll get the idea in no time. interdev with its intellisense and
highlighting is one of the best asp learning tools there is - far superior
to ultradev which is primarly for designers looking for a quick and dirty
fix to their asp/jsp/cf parts to a project.
its the equivalent of devlopers using square buttons with times new roman
text on every site!
hth
dave ecky
David Eckersall
Kinetic North Limited
A member of the Wize Group of companies
Reg Co No 4100142
Reg Office and Business Address
St James House, Wellington Road North
Stockport SK4 2QN
Office Tel - 00 44 161 975 5900
Office Fax - 00 44 161 975 5924
Web - http://www.kineticnorth.com
This communication contains information which is confidential and may also
be privileged. It is for the exclusive use of the intended recipient(s). If
you are not the intended recipient(s) please note that any form of
distribution, copying or use of this communication or the information in it
is strictly prohibited and may be unlawful. If you have received this
communication in error please return it to the sender. Internet e-mails are
not necessarily secure. Kinetic North Limited does not accept responsibility
for changes made to this message after it was sent. Our messages are checked
for viruses but please note that we do not accept liability for any viruses
which may be transmitted in or with this message.
----- Original Message -----
From: [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Thursday, January 18, 2001 4:29 PM
Subject: RE: FN-FORUM asp/vbscript shoppingcart problem
> Do I stick all this into the body of the email?
>
> UC_rowDelim = Chr(13) & Chr(10) & Chr(13) & Chr(10)
> UC_colDelim = Chr(13) & Chr(10)
> CartData = ""
> for jRow=0 to UCCart1.GetItemCount() -1
> if (iRow 0) Then CartData = CartData & UC_rowDelim
> CartData = CartData & "Title: " & _
> UCCart1.GetColumnValue("Title",jRow) & UC_colDelim
> CartData = CartData & "Quantity: " & _
> UCCart1.GetColumnValue("Quantity",jRow) & UC_colDelim
> CartData = CartData & "Price: $" & _
> UCCart1.GetColumnValue("Price",jRow) & UC_colDelim
> CartData = CartData & "Total: $" & _
> UCCart1.GetColumnValue("Total",jRow) & UC_colDelim
> CartData = CartData & UC_rowDelim
> Next
>
>
>
> ============================================================
>
> * Free listing for freelancers
> * Free to advertise jobs
> * Free jobs distribution service
> * Free database of 1000 freelancers
>
> Freelancers and Freelance Jobs
> http://www.freelancers.net
>
> To post to the Forum:
> [EMAIL REMOVED]
>
> To unsubscribe please email:
> [EMAIL REMOVED]
>
> If you have difficulties unsubscribing please email:
> [EMAIL REMOVED]
>
> To subscribe to the digest for this list or for further information please
visit:
> http://www.freelancers.net/forum.html
|
 |
|