I am not a programmer, but I do know how to write some code. I was currently asked to change a program that we have that is no longer working and I need to do a string comparison.
I am searching Active Directory and based on the user name I would like to search specific parts of AD. For example, if a user with the User Name 21tuser runs this program I want the AD search to be in the '21' OU.
I don't know how to use string.compare. I tried:
int x = string.compare(strUserid.Substring(2),"21");
if (x=0) and so on
I am searching Active Directory and based on the user name I would like to search specific parts of AD. For example, if a user with the User Name 21tuser runs this program I want the AD search to be in the '21' OU.
I don't know how to use string.compare. I tried:
int x = string.compare(strUserid.Substring(2),"21");
if (x=0) and so on