Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 type mismatch - comersus shopping cart
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

weeweeslap
Senior Member

USA
1077 Posts

Posted - 23 March 2007 :  22:28:32  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
I am trying to get comersus shopping cart version 7.07 to work on my site. I want to do it all through paypal as it has the stuff set for paypal and when I go to confirm the order, I get the following error:

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'arrayEncrypted(...)'

/shopping/includes/encryption.asp, line 154

Here are lines 143-158 of encryption.asp

function transformToCHR(plaintxt)

      ' transform to CHR, insert into array
      
      dim returnText, arrayEncrypted
      arrayEncrypted = split(plaintxt, "|")            
      
      returnText=""            
      
      ' transform to CHR
      for a = 1 to ubound(arrayEncrypted)         
         returnText=returnText&CHR(arrayEncrypted(a))
      next
      
      transformToCHR = returnText
end function

red line is 154. Do you guys have any idea what could be the problem? I appreciate your help!
-wws

coaster crazy

Doug G
Support Moderator

USA
6493 Posts

Posted - 24 March 2007 :  01:05:05  Show Profile
My guess is ArrayEncrypted isn't an array variable. Or the node you're working with isn't a string value.

Also arrays in VBScript normally are 0-based, not 1-based, so you might want to use for a = 0 to ubound(arrayEncrypted) -1

======
Doug G
======
Computer history and help at www.dougscode.com
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 24 March 2007 :  13:54:02  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
I have a friend test it out and it worked out fine for him without code changes so I am guessing it might instead be something with my browser settings.

coaster crazy
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 30 March 2007 :  09:25:52  Show Profile  Send pdrg a Yahoo! Message
Should be unrelated to browser settings, ASP runs ONLY on the server.

2 thoughts
1) yes, as Doug says, you should use for a = 0 to ubound(arrayEncrypted) -1. If you don't, you will hit errors later. You just will.
2) CHR() function is only supposed to take single characters I think
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07