I need replace in my MySQL result “,” for “.”
string.Replace(",", ".");
current code:
mysql.Connection.Open();
mysql.Command.CommandText = query;
mysql.Reader = mysql.Command.ExecuteReader();
string new_ = String.Empty;
while (mysql.Reader.Read())
{
/*
foreach(var field in mysql.Reader)
{
// what i do here?
}
*/
// here i have code to add to TextBox value
}
I have no idea how to replace… i tried some like
field = string with replace
but Visual Studio cant take this code.
you probably wanna store all those replaced strings somewhere,
so you can make a list: