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
. 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 » mid

3w learning

string >
mid

Title:

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    :  长度
Example Code:

Example code 1 ----- <% Txt="www.ezer.com" DomainName=mid(Txt,5) response.write "Domain Name = "&DomainName %> Example code 2 ---------- <% Txt="link.ezer.com" DotPlace=instr(Txt,".") SubName=mid(Txt,1,DotPlace-1) response.write "Sub Name = "&SubName %> --------Ezer Tips ---------- when n start = 1 you will find mid(Txt,1,DotPlace-1) same as left(Txt,DotPlace-1)


DotPlace=instr(Txt,".")
取出第一个点位置=5
5-1=DotPlace-1=指定长度
------- tips --------
mid 与 left 有似可有相辅的功能
Example Result:


----Sample code 1 result---- Dome Name = ezer.com ----Sample code 2 result---- Sub Name = link


网址名=ezer.com

副域名=link
..
...
...

[ 7/27/2008 ]

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