Bilgisayar Bölümü ASP Kod ve Script Arşivi


Mid Function


Replace part of a String

Using the Mid Function you can remove a section from the middle of a String . The syntax of this Function Is

Mid (String , position , no_of_chars )

String Is our String of Text , position Is the position of the first character In the String you wish To remove And the third parameter Is the number of characters .

Lets see an example

<%
'our String
strText = ""Thisisasillylongsentence""
'we wish To keep the word Long so we start at character 13
'And Then keep 4 characters Like this
strNewText = Mid(strText , 13 , 4)
'display the word Long
Response.Write strNewText
%


"

ASP Kitabı

 

Faydalılar: Altın Fiyatları |Hediye Kolye | pırlanta fiyatları
Ana Sayfa  Sık Kullanılanlara Ekle   admin[at]bilgisayarbolumu.com | © 2006 - 2022 Bilgisayarbolumu.com