We often come across these two functions and don’t use them without referring the documentation.

The main difference between these two functions is

strFind – Find the first occurrence of the characters mentioned in the parameters

strFind(“ABCDEFGHIJ”,”KHD”,1,10); //Returns the value 4 (the position where “D” was found)

strScan – Finds the first occurrence of the text string mentioned in the parameters

strScan(“ABCDEFGHIJ”,”DEF”,1,10); //Returns the value 4.