domain .tw idv.tw .com.tw
你正在閱覽 :: 繁體中文:: 學習 ASP SQL VB HTML code

學習 .ASP SQL HTML XML CSS JAVA Perl code study
English Chinese_Traditional Chinese_Simplified

你正在閱覽 :: 繁體中文 Chinese_Traditional

學習.主題:
首頁
ASP
. Active-Server-Flash
. Array
. Connection
. Count
. Counter
. Distinct
. Email
. File
. Folder
. Function
. GetSQLserver
. Header
. mySQL
. Record
. Recordset
. Request
. Response
. Server
. Server-CreateObject
. ServerVariables
. Session
. Special-Symbols
. String
»Left
»Length
»like
»Mid
»Replace
»Right
»Split
»trim_space
. Sub
. Time
CSS
Ecommerce
HTML
InternetProtocol
JAVA
Microsoft
Robots
SearchEngine
SQL
SQLserver
VBscript
XML

SiteMap

3w....學習.教學 > ASP > string » length

3w learning

string >
length

Title:

String text length (counting characters include space)


字串長度 (算出字元長度)
Description:

Len(X): to count the total length of a string X example: often be used at submit required a length of characters limitation usage: often combines with Trim(X), Right(X,n), Left(X,n), Min(X,m,n) -------------------------------- do not use length(________) do not use len("_______")


Len(X): 算出X自串字元長度
(通常一中文字等於兩個英文字元)

例: 常在傳送前檢查字串的長短是否吻合要求

使用: 常合併與Trim(X), Right(X,n), Left(X,n), Min(X,m,n) 一起使用
Example Code:

<% dim LenTxt, aTxt aTxt="call Ezer" LenTxt=Len(aTxt) response.write "aTxt length= "&LenTxt %>


宣告變數 LenTxt, aTxt

定aTxt="call Ezer"

計算出 aTxt 的總字元長度

螢幕印出 aTxt length = 長度LenTxt
Example Result:


aTxt length= 9 ------------ length is 9


字串長度= 9
..
...
...

[ 8/20/2008 ]

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