-
Use split separation, but note that when multiple form elements have the same name, the data sent is in the same format.
Comma and space are separated, be careful when using split! myarr = split(fieldname,", ")
-
The direct request is a="1,1,0"
This form.
Needs attention"checked"The name must be the same.
-
In the form, it can be named with the same name, and then read it with a for loop.
for i = 1 to "Commendation element name").counta=a&"Commendation element name")(i)
That's it.
-
dim newgroup1array()
from1_group_id=3
group_id=5
redim newgroup1array(from1_group_id)
newgroup1array(from1_group_id)=group_id
from1_group_id=1
group_id=4
redim newgroup1array(from1_group_id)
newgroup1array(from1_group_id)=group_id
for j=0 to ubound(newgroup1array)
newid"Zheng or&j&"=newgroup1array(j)&"
NextGu Sencong let the body logic please implement it yourself,I only remind the landlord to note:Whenever this bureau is redim to the array,The original content stored in the array will be emptied。 So if you write redim inside the loop body, then the array will be emptied once per loop.
-
function splitstr(s)
dim tmp,strs(),ary,i,itemvaluetmp = s
ary = split(tmp,"|
set d = createobject("")for i = 0 to ubound(ary)if ary(i) if then'The backlash is already there.
itemvalue =
cint(itemvalue) +1
ary(i),1
end if
end if
nextdim keys
keys =
for i = 0 to
nextset d = nothing
end function
call splitstr("Company 1|Public Talk Search Division 3|Company 1|The company contains a calendar 2|Company 4|Company 3|Company 1|Company 2|Company 1|")
-
<%dim num 'Define a new variable.
num = 1000 'The value of the variable is a numeric DIM array'Define another variable, redim array(num,3).'Change this variable to array, dynamic array, dim parray(3).'Define an array to store a set of data ids, name, int
To increase the array operation.
iscf=0 'Record if there are duplicate labels.
for i=0 to ubound(array)-1if array(i,0)=parray(0) thenarray(i,2)=array(i,2)+1 'When the ID is detected, the same value is added by one.
iscf=1
exit for
end if
next, if there is no duplicate, add a new line.
if iscf=0 then
introw=ubound(array)'Make sure that the new line number is array(introw,0)=parray(0)array(introw,1)=parray(1)array(introw,2)=parray(2)end if
To delete an operation with an id of 1.
delid=8 'Specify the ID you want to delete
for i=0 to ubound(array)-1if array(i,0)=delid thenarray(i,0)=-1'Change the deleted data id to -1, and block the number of IDs with -1 when reading useful data.
exit for
end ifnext
-
asp can be achieved by defining multiple arrays:
dim t(100)
dim ag(100)
dim ad(100)
t(0)="sale"
ag(0)="15"
ad(0)="Heping Zhixing District"
t(1)="sale"
ag(1)="Escort sedan 15"
ad(1)="Peace in the Lumeng area"
-
It is also possible to use the ulnar cavity pure asp class to infiltrate.
class house_info
dim t,ag,at
end class
set t= new house_infoset t1= new house_info"sale"
sale"
-
First of all, this is an assignment statement, not a declaration array.
Array is a built-in function of VBS, which returns a varinat-type variable containing an array, and the array function can create an array with arguments, but if no arguments are provided, an empty array is created.
-
Assign the array to the variable dd, and the dd will be the same array as the array.
-
There is no such thing in asp, let alone declaring variables.
Below is saved as.
set conn="") >>>More
Huh, 1. That short name cannot be changed unless you create a new account in your own name. >>>More
The following ** I wrote for you can accomplish such a function, but the specific content needs to be added by yourself, and you have to know a little HTML to do it: >>>More
function open conn() defines the function open conndim dbpath, and conn defines the variables dbpath and conndbpath="Database path"Override the relative path of your database to the variable dbpath >>>More