Contains and IndexOf String Functions – VB .Net



In this tutorial I will explain and demonstrate the IndexOf and Contains functions. Contains is a boolean function and it simply returns true or false based on whether the calling function contains the specified Substring. IndexOf returns the position of the first occurrence of the specified Substring – if the Substring is not found it will return -1.

Comments are closed.