Function in
programming is very useful for encrease the project process of our working.
Below, I will explain how to use these function using VB.Net 2008.
The use of function Left, Mid and Right in VB.NET 2008
The use of function Left, Mid and Right in VB.NET 2008
These tips discusses the use of functions such as the use Left String, Mid and Right.
At VB.Net 2008 may you experience Error on Left and Right, but in the Mid function is not. Though the program has not run but after a typing error the explanation would appear that there is information and statements Left underlined, like this left.
Well to anticipate you try to modify such commands below, using Microsoft.VisualBasic before the function is in use.
Example of Project
Code Program
Public Class Form1
Private Sub Button1_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox2.Text = Microsoft.VisualBasic.Left (TextBox1.Text, 3)
TextBox3.Text = Microsoft.VisualBasic.Mid (TextBox1.Text, 3, 5)
TextBox4.Text = Microsoft.VisualBasic.Right (TextBox1.Text, 2)
End Sub
End Class
Program results while on the run.
Good luck:
Don’t forget visited me again AMINLAHAGU
No comments:
Post a Comment