how can i take only the letters that after the dot (.) in the word?
if i have the word: "Yes.No" i want that my string a will be equal to "No",
but that should work in every word, not just in Yes.No

You splits the string at the dots, put both parts in a stringarray and then take the last element of the string array

string test = "yes.no";
			
string [] stringArray = test.Split('.');
			
test = stringArray[1];

thank you :) it's work!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.