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 in CF to a structure, that way you can use zero and one as the keys. Right now your line <cfset s3 = vob[m mod 2]> is going to be off, because the VB code is expecting 0 or 1 and in CF the items are in positions 1 and 2. -Dan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238724 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

