Question Verify if there is "X" between "Y" and "Z" -> Y X Z in webpage -> see example

kardoser

New member
Joined
Jun 29, 2013
Messages
1
Programming Experience
Beginner
Verify if there is "X" between "Y" and "Z" -> Y X Z in webpage -> see example

Lets say i want to verify if there is something between something (i know its confusing, but see example below)

Example:
###TEXT#####TEXT#######TEXT#######TEXT#########TEXT###
------the text i need to verify if its between ###TEXT### -------
###TEXT#####TEXT#######TEXT#######TEXT#########TEXT###

I basically need the application to verify if the entered text in the TextBox is between X and Y wich i will define later. X is text too and Y is text too

Lets take a pratical example : i need to verify if my Nickname is between the date of the thread "Today" and "VB.NET Forum Newbie".

Got it?
 
Hi,

If you read whatever the string is that you are trying to interrogate into a String variable you can then simply use IndexOf to get the starting position of the three strings to be found and if the value of Z is then between X and Y then you have your answer.

See here:-

String.IndexOf Method (String) (System)

Hope that helps.

Cheers,

Ian
 
Back
Top