Substring() Example Syntax VB.NET ASP.NET | Substring() | Source Code
Get 5 Hours of FREE PREMIUM Videos:
LearnVisualStudio.NET Free Preview
“ I am a lifetime member of LearnVisualStudio.net and a Premium Plus member of dotNetVideos.net.
LearnVisualStudio.net is awesome because it grows in value each year as more videos are added.
dotNetVideos.net is also great because it focuses a lot on MS Certifications and practical interview questions.
”
- Wade Harvey (IdealProgrammer.com)
Premium (Not Free) Video Tutorials
Free Video Tutorials & Free Tools
Substring Example Syntax VB.NET ASP.NET | Substring | Source Code
Summary: – Illustrates using Substring with Source Code Syntax Example in VB.NET ASP.NET.
*** 1. Download Source Code *** |
|---|
Download Source Code for All VB ASP.NET Examples in One Project – source code for hundreds of VB.NET ASP.NET examples neatly organized in a single project. Check back often to download the latest version of the project with even more code samples. |
*** 2. Substring Syntax ***
Purpose:
Returns the string that starts at the specified position and has the specified
length. If the length is not specified, all of the characters to the end are returned.
Syntax:
inputString.Substring(startIndex[, length])
inputString.Substring(startIndex[, length])
| Parameters | Description | inputString | Required – string that you want to get a part of. |
|---|---|
| startIndex | Optional. specifies where to start. Zero-based. |
| length | Optional. specifies how many characters to to return past start. If no length is specified, rest of string is returned. |
| Result Data Type | Description | string | Returns the string that starts at the specified position and has the specified length. If the length is not specified, all of the characters to the end are returned. |
|---|
*** 3. Substring – Quick Example *** | Dim strSubstringExample As String = "This is a test string" TextBox1.Text = strSubstringExample.Substring(0,4) 'Returns This |
|---|
*** 4. Substring – Full Example ***Substring Example Output ScreenshotStep 1: Click on Visual Basic to Cut-n-paste code into Substring.aspx.vb
Step 2: Click on XML to Cut-n-paste code into Substring.aspx
Prerequistes:
Notes:
Instructions:
|
Related posts:
- VB.NET Substring() – Code Sample VB.NET Substring() - Code Sample...
- VB.NET ASP.NET Left() Source Code Syntax Example VB.NET ASP.NET Left() Source Code Syntax Example...
- VB.NET ASP.NET LastIndexOf() Source Code Syntax Example VB.NET ASP.NET LastIndexOf() Source Code Syntax Example...
- VB.NET ASP.NET String Examples – String Examples ASP.NET VB.NET VB.NET ASP.NET String Examples - String Examples ASP.NET VB.NET...
- VB.NET ASP.NET Mid() Source Code | Mid() Example Syntax VB.NET ASP.NET Mid() Source Code | Mid() Example Syntax...
Related posts brought to you by Yet Another Related Posts Plugin.













































