Programming Tutorials

String endswith, concat in VB.net

By: Issac in VB.net Tutorials on 2009-01-30  

The EndsWith function in VB.net is used to check if a string ends with a specific character or a set of characters. The syntax for using EndsWith function is as follows:

stringVariable.EndsWith("substring")

The function returns True if the string ends with the specified substring, and False otherwise.

The Concat function in VB.net is used to concatenate two or more strings. The syntax for using Concat function is as follows:

stringVariable1.Concat(stringVariable2)

The function returns a new string that is the result of concatenating stringVariable1 and stringVariable2. You can concatenate multiple strings by using multiple arguments with Concat function:

stringVariable1.Concat(stringVariable2, stringVariable3, stringVariable4)





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in VB.net )

Latest Articles (in VB.net)