RE: coupons inc script - convert VB to CF UDF

2006-04-27 Thread Bobby Hartsfield
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

coupons inc script - convert VB to CF UDF

2006-04-25 Thread Jim Priest
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

RE: coupons inc script - convert VB to CF UDF

2006-04-25 Thread Ben Nadel
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

RE: coupons inc script - convert VB to CF UDF

2006-04-25 Thread Ben Nadel
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

RE: coupons inc script - convert VB to CF UDF

2006-04-25 Thread Dan G. Switzer, II
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

Re: coupons inc script - convert VB to CF UDF

2006-04-25 Thread Robert Everland III
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