Cancel
Showing results for 
Search instead for 
Did you mean: 

Finding string

Solution Partner Pioneer Solution Partner Pioneer
Solution Partner Pioneer

Hello,

 

I want to check if the String1 contains String2. I am going to make little program which will be checking every letter in string1. If its "b" followed by "l" etc...

 

Example:

String1 := "Car is blue and new" 

String2 := "blue"

 

Is there any faster way to do such a thing with simple command?

 

Thank you 

DR

2 REPLIES

Re: Finding string

Siemens Phenom Siemens Phenom
Siemens Phenom

print pos("blue", "Car is blue and new")

_________________________________________________________________
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: Finding string

Solution Partner Pioneer Solution Partner Pioneer
Solution Partner Pioneer
Thank you very much ! Exactly what I was looking for Smiley Happy