web tools rank checker

domain .cn
.net .cn .com.cn
你正在阅览 :: 简体中文:: 学习 ASP SQL VB HTML code

学习 .ASP SQL HTML XML CSS JAVA Perl code study
English Chinese_Traditional Chinese_Simplified

你正在阅览 :: 简体中文 Chinese_Simplified

学习.主题:
首页
ASP
CSS
Ecommerce
HTML
InternetProtocol
JAVA
Microsoft
Robots
SearchEngine
SQL
SQLserver
VBscript
. Array
»Filter
»Split
»UBound
. Functions
. Prevent_hacker
XML

SiteMap

3w....学习.教学 > VBSCRIPT > array » ubound

3w learning

array >
ubound

Title:

UBound(array name[,the largest dimension of the array])


UBound 读取指订的数组中最大的注标
Description:

UBound(arrayX) returns the largest dimension size


UBound 数组的极大( Up Bound)
LBound 数组的极小(Low Bound)
Example Code:

Example 1----------- <% arrayX=Array("link","ezer","com") for I=0 to UBound(arrayX) if I<UBound(arrayX) then response.write arrayX(I)&"." else response.write arrayX(I) end if next %> Example 2 ------------------- <% dim dayArray(99) dayArray(0)="8/5/2006" dayArray(1)="9/5/2006" dayArray(2)="10/5/2006" dayArray(3)="11/5/2006" dayArray(4)="12/5/2006" '-----------Use document.write( )------------------------- document.write(UBound(dayArray)) document.write("<br>") document.write(LBound(dayArray)) '-----------Use response.write ----------------------- response.write UBound(dayArray)&"<br>"&LBound(dayArray) %>


当 array 未被设限大小时, UBound array 
值将跟着 array 值的增加而变更
Example Result:

Example 1 result: link.ezer.com Example 2 result: 99 0


------- attention ---------- Example1 has no dim arrayX=(2) so the UBound(arrayX) can be different when array change Example2 has dim dayArray(99) already so the array max =99


..
...
...

[ 8/28/2008 ]

www learning school add more scripts and tips memo
You are at >>3WS.EZER.COM >> 3WS.EZER.COM/VBSCRIPT/ARRAY/UBOUND.ASP>>VBSCRIPT
Helpful link:: SEO web tools :: Live PR | SERP checker
back to top Ezer code adding :: Questions ;email