|
Technical Interview Questions
Visual Basic Interview Question
.NET Web Interview Questions
.NET
Interview Questions
C#
Interview Questions
.........More
Source Codes
Asp .NET Source Codes
Asp VB Script Source Codes
.........More
Soft Skills
Communication Skills
Leadership Skills
.........More
|
|
Asp/VB Script Source Codes
VBScript Mid Function
Mid(String, Start, Length)
The Mid function returns the portion of the designated string for a designated
length starting from any position in the string.
There are two mandatory arguments.
String
The String argument is the name of the string you wish to truncate.
Start
The Start argument is a numeric position anywhere in the string counting from
the left side. The portion of the string to the left of this position will be
discarded.
Code:
<% =Mid("abcde fghij klmno pqrst uvwxyz", 8) %>
Output:
ghij klmno pqrst uvwxyz
There is one optional argument.
Length
The optional Length argument is the number of characters (including blanks) in
the string you wish to save counting from the position designated by the Start
argument.
Code:
<% =Mid("abcde fghij klmno pqrst uvwxyz", 8, 7) %>
Output:
ghij kl
<<<----- Return to
Asp/VB Script Source
Code Questions Page.
Have a Question ?
post your questions here. It
will be answered as soon as possible.
Check
Microsoft .Net Interview Questions
for more Microsoft
.Net Interview Questions with Answers.
Check
.Net Database Interview
Questions for more .Net Database Interview Questions with answers
Check
Job Interview Questions
for more Interview Questions with Answers
|