This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > September 2004 > Please help with syntax (VB Script)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Please help with syntax (VB Script)
Aleks

2004-09-09, 7:17 pm

A session var is called "Recipents" its value: "1,2,3,4,5,6,7"
A form value posted from a previous page is called "recid" its value is:
"1,2,3"

How can I set the session var to be: "1,2,3,4,5,6,7" - "1,2,3" so that the
result is: "4,5,6,7"

I tried:

<%
Session("Recipents") = Session("Recipents") - Request.Form("recid")
%>

But I get an error. Can anyone help me with the syntax ?

Error:

Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: '[string: "31, 36,5, 34, 26"]'
/blueDOT/Intranet/Inbox/Deleterecipent.asp, line 16


Thanks

Aleks


Julian Roberts

2004-09-09, 7:17 pm

You'll have nightmare trying to get this to work. You'd have to create
arrays and then lop through both to find matching values. Try looking
through:

http://www.aspemporium.com/aspEmporium/index.asp

for an array class (the site is down at the mo')

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004



Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews