Link to home
Start Free TrialLog in
Avatar of Sheldon Livingston
Sheldon LivingstonFlag for United States of America

asked on

C# voodoo needed.

Can anyone tell me the voodoo needed to test for BACKUP<DIV is contained in str?

str is declared as a string.

These attempts throw VS errors

if (str.IndexOf("BACKUP<DIV")) != true)
if (str.IndexOf("BACKUP<DIV")) <> true)
if (str.IndexOf("BACKUP<DIV")) != 0)
if (str.IndexOf("BACKUP<DIV")) <> 0)
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sheldon Livingston

ASKER

What a dufus...   Thank you Bill... that was it.
Avatar of Bill Prew
Bill Prew

No problem, glad it was easily resolved.


»bp