I can't understand an error I am getting while I am building a URL string. The full string code is at the bottom, but the following error occurs:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: '[string: "&display"]'
/stocks/results2.asp, line 341
Line 341 is the following:
newURL = newURL & "&display" + cnt + "=" + sells(cnt)
Anyone know what this means?????
dim newURL, upper
newURL = "results_main.asp?"
upper = UBound(names1)
for g=0 to upper
newURL = newURL & "" + names1(g) + "=" + namesx(g) + "&" + mins(g) + "=" + minsx(g) + "&" + maxs(g) + "=" + maxsx(g)
next
newURL = newURL & "&sortby=" + Server.URLEncode(order) + "&upordown=" + Server.URLEncode(dir)
newURL = newURL & "&screenName=" + Server.URLEncode(screenName) + "&display_var=" + Server.URLEncode(display)
newURL = newURL & "&display_varcount=" + Server.URLEncode(displaycount)
for cnt=1 to displaycount
newURL = newURL & "&display" + cnt + "=" + sells(cnt)
next
newURL = newURL & "&pages=" + Server.URLEncode(Recordset1.PageSize)
newURL = newURL & "&marker=" + Server.URLEncode(marker) + "&page=" + iPageCurrent
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: '[string: "&display"]'
/stocks/results2.asp, line 341
Line 341 is the following:
newURL = newURL & "&display" + cnt + "=" + sells(cnt)
Anyone know what this means?????
dim newURL, upper
newURL = "results_main.asp?"
upper = UBound(names1)
for g=0 to upper
newURL = newURL & "" + names1(g) + "=" + namesx(g) + "&" + mins(g) + "=" + minsx(g) + "&" + maxs(g) + "=" + maxsx(g)
next
newURL = newURL & "&sortby=" + Server.URLEncode(order) + "&upordown=" + Server.URLEncode(dir)
newURL = newURL & "&screenName=" + Server.URLEncode(screenName) + "&display_var=" + Server.URLEncode(display)
newURL = newURL & "&display_varcount=" + Server.URLEncode(displaycount)
for cnt=1 to displaycount
newURL = newURL & "&display" + cnt + "=" + sells(cnt)
next
newURL = newURL & "&pages=" + Server.URLEncode(Recordset1.PageSize)
newURL = newURL & "&marker=" + Server.URLEncode(marker) + "&page=" + iPageCurrent