'Find Position of the String "is" in a sentence
v_input_string="The Request is 123456"
v_text_to_find="is"
' Store the position
v_pos=InStr(1,v_input_string,v_text_to_find)
MsgBox "Position of the String ""is"" is : "&v_pos
MsgBox "Position of ""in"" is"& Instr(1,"Todays Developing India","In")
OutPut:
Position of the String "is" is 13
Position of "in" is 19
No comments:
Post a Comment
Please add value. Sharing is caring