It works and finally returns the right string :-)
..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: Jim Priest [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 25, 2006 4:40 PM
To: CF-Talk
Subject: Re: coupons inc script - convert VB to CF
I'm working on a project where I need to send people to Coupons Inc to
get a coupon. They provided an alogrithm which generates a key used
in a URL which allows tracking, etc.
They provided an example VB script which would generate this key when
passed a few variables. I've tried to recreate it
Subject: coupons inc script - convert VB to CF UDF
I'm working on a project where I need to send people to Coupons Inc to get a
coupon. They provided an alogrithm which generates a key used in a URL
which allows tracking, etc.
They provided an example VB script which would generate this key when
Ooops, I see, its not a function, its an array :)... My bad.
...
Ben Nadel
www.bennadel.com
-Original Message-
From: Ben Nadel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 25, 2006 3:12 PM
To: CF-Talk
Subject: RE: coupons inc script - convert VB to CF UDF
Jim
Jim,
I'm working on a project where I need to send people to Coupons Inc to
get a coupon. They provided an alogrithm which generates a key used
in a URL which allows tracking, etc.
One thing to remember is arrays in VB start at zero and arrays in CF start
at one.
I'd change your vob variable
I have corrected your function, I added in some vars. The mod was definitely
going to be an issue, so I just added 1 to it, you were also using the variable
m in there and m wasn't used anywhere so I changed that to i, enjoy.
cffunction name=EncodeCPT
cfargument name=vString
6 matches
Mail list logo