|
ASP
String
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位開始算的字元
(一中文=兩個英文字元) 
ASP
String
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位開始向左算的字元 (一中文=兩個英文字元) 
ASP
String
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) 一起使用 
ASP
String
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 : 長度

ASP
String
More detial or script code example
split long strings by any " string "
以 某 " 字串 " 分隔某長字串 Description: strArray = Split(Longstr, "str")
陣列 = 分隔指令 (長字串, "短字串")
使用短字串來分隔長字串 
ASP
String
More detial or script code example
Replace
替換 Description:

ASP
String
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"
去掉字串左右空格 
ASP
String
More detial or script code example
like '%xampl%' to search for a pattern
尋找一特定樣式 Description: like '%_____%'

|