Strings

Hi i am new to arduino programming but i have work my self in c# for many years and confuse me the library . i learn to make library in arduino but i can not do this :

string inputString="";

void DoSomething()
{

if(inputString.substring(5,7).equals("-"))
{
//Do Something
}

}

Can anyone help me??

}

C/C++ is not C#.
Arduino String reference.
However, for a multitude of reasons, Stings are best avoided on most Arduinos.

Did you mean

String inputString="";

?

If you're going to use Strings, go full blown:

        if(inputString.substring(5,7) == "-"))

TheMemberFormerlyKnownAsAWOL:
Did you mean

String inputString="";

?

Yes that i mean;

aggelostzitzifas:
Yes that i mean;

You'll need to be more precise about what is not working then.

Perhaps posting a complete sketch might help, in [​code]code tags[​/code]