Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/09/2009, 13:32
Avatar de jahman
jahman
 
Fecha de Ingreso: noviembre-2003
Ubicación: Oslo
Mensajes: 230
Antigüedad: 20 años, 6 meses
Puntos: 0
Respuesta: Replace() reemplaza todo la cadena!!

Peterpay maestro........gracias por responder

como ves sigo con los problemas con los arrays mira les hize la siguiente modificaciones pero aun haci no funka


Código:
 int FlagW = 0;
 int i = 0;
string tempw;  //declaro como string
tempw = filter.Text; //copio en un auxiliar
                    

                    for (i = 0; i < tempw.Length; i++)
                        {
                            if (tempw[i] == ' ')
                                FlagW++;
                            if (FlagW == 2)
                            {
                                filter.Text[i] = tempw[i].ToString().Replace(" ", "<br />");
                                break;
                            }
                        }
                        linkButton.Text = "» " + filter.Text + tempw
pero aun asi salen 2 errores

Error 1 Property or indexer 'string.this[int]' cannot be assigned to -- it is read only
Error 2 Cannot implicitly convert type 'string' to 'char'

lei por ahi que si lo pasaba como stringbuilder lo podia editar pero cuando lo probe salio el mismo error. haber si me echas otra manito. Gracias.