NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

String find failure in TS v3.5

Hello,
What's wrong in attached string find sequence ?
If the stringToSearchFor is starting from the first character of the string, I cannot get the Teststand v3.5 to find it.
Regards,
Petri
 
0 Kudos
Message 1 of 4
(2,945 Views)
Hi,
 
If the find finds the text at the start, the return index will be 0.
If it doesn't find it the function returns -1.
 
Are you sure your precondition is correct?
 
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 4
(2,939 Views)

Thanks Ray for quick answer!

Yes, elementary fail in if condition.

Regards,

Petri

 

0 Kudos
Message 3 of 4
(2,937 Views)
Hello!
 
Please, just change your 'If' condition since to 'Greater Than Equal' and it will work fine.
Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 4 of 4
(2,898 Views)