|
|
|
|
|
| | |
| |
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
|
|
Subject: |
Count the number of values in an array string??? |
|
From: |
Carlos |
|
Date: |
11/4/2002 2:36:54 PM |
|
IP: |
66.93.130.160 |
I am trying to figure out how to count the number of values in an array string so that I can in turn define and set a session value for each individual value. The string is submitted to an ASP page from a form value with the <Multiple Select> method:
The results are declared as: (2500,2501,2502,2503,2504)
so MultiSelect() = (2500,2501,2502,2503,2504)
I want to find the count and then set each variable to a session variable like:
-------------------------------------------------
Count(MultiSelect()) = 5 'for the five variables in the string
session("MultiSelect1") = 2500 'for the first value in the string
session("MultiSelect2") = 2501 'for the second value in the string
session("MultiSelect3") = 2502 'for the third value in the string
session("MultiSelect4") = 2503 'for the fourth value in the string
session("MultiSelect5") = 2504 'for the fifth value in the string |
Follow Up - Re: Count the number of values in an array string??? - jason pinhut 12/25/2002 10:53:30 PM
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|