|
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"
去掉字串两边的空格
不防止chr(255)特殊空格
asc代码是255
Alt+255",按住alt键然后依次按下小键盘中"2","5","5" 
ASP
String
More detial or script code example
like '%xampl%' to search for a pattern
Description: like '%_____%'

|