M
ma
Hello,
I want to change one character in a string to a new character. How can i
do this. For example I have a string called x and it contains "This is a
test" and I want to change the i in is to a so after change it become "This
as a test". I tried the following code without any sucess:
public void ChangeChar(int index,char NewChar)
{
m_MyString.Remove(Index);
m_Privilage.Insert(Index,NewChar);
}
How can I convert a char to a string? How can I convert a char to char *?
Regards
I want to change one character in a string to a new character. How can i
do this. For example I have a string called x and it contains "This is a
test" and I want to change the i in is to a so after change it become "This
as a test". I tried the following code without any sucess:
public void ChangeChar(int index,char NewChar)
{
m_MyString.Remove(Index);
m_Privilage.Insert(Index,NewChar);
}
How can I convert a char to a string? How can I convert a char to char *?
Regards