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 »

w3 learning

ASP

String

:: Left

More detial or script code example

request to get left side of string :: count by setting number

取出字串由左1位開始算的字元 :: 可設要取的字數
Description:

Form:: Left(Txt,n) calling left side of string and returning characters from string:: request 7 characters from "welcome learning" as the string (one Chinese character = 2 English characters)

傳回一字串由左1位開始算的字元
(一中文=兩個英文字元)
Left

ASP

String

:: Right

More detial or script code example

request to get right side of string :: count by setting number

取出字串由右1位開始向左算的字元 :: 可設要取的字數
Description:

calling begin from the right side of string and returning characters from string:: request 8 characters from "welcome learning" as the string (one Chinese character space= 2 English characters)

傳回一字串由右的第1位開始向左算的字元 (一中文=兩個英文字元)
Right

ASP

String

:: Length

More detial or script code example

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) 一起使用
Length

ASP

String

:: Mid

More detial or script code example

Mid(string,start[,length])

截取字串中間的字元
Description:

Form:: Mid(string,start[,length]) Mid(Txt,n) Mid(Txt,n,m) Txt is string n is starting place m is length .... is not necessary : no length = to the end

讀取一字串中由指定的位置算起,截取指定的長度
Txt  : 字串
n     :  起點位置
m    :  長度
Mid

ASP

String

:: Split

More detial or script code example

split long strings by any " string "

以 某 " 字串 " 分隔某長字串
Description:

strArray = Split(Longstr, "str")

陣列 = 分隔指令 (長字串, "短字串")
使用短字串來分隔長字串
Split

ASP

String

:: Replace

More detial or script code example

Replace

替換
Description:

Replace

ASP

String

:: trim_space

More detial or script code example

ASP : Trim( string )

去掉字串左右空格
Description:

To delete two spaces at the beginning and the end. ###### but trim may not prevent chr(255)  asc: "Alt+255"

去掉字串左右空格
trim_space

ASP

String

:: like

More detial or script code example

like '%xampl%' to search for a pattern

尋找一特定樣式
Description:

like '%_____%'

like

..
...
...

[ 8/20/2008 ]

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