Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 23-05-2007
hperez hperez is offline
Miembro
 
Registrado: may 2007
Posts: 21
Poder: 0
hperez Va por buen camino
Como hago un replace en delphi ??

nesecito saber como reemplazar una caracter 'a' por un caracter ´b´ en una cadena
Responder Con Cita
  #2  
Antiguo 23-05-2007
Avatar de gluglu
[gluglu] gluglu is offline
Miembro Premium
 
Registrado: sep 2004
Ubicación: Málaga - España
Posts: 1.455
Poder: 21
gluglu Va por buen camino
Busca en la ayuda del Foro 'StringReplace'.

Te saldrán varias ayudas al respecto.
__________________
Piensa siempre en positivo !
Responder Con Cita
  #3  
Antiguo 23-05-2007
Avatar de Bicho
[Bicho] Bicho is offline
Miembro Premium
 
Registrado: jul 2003
Ubicación: Inca - Mallorca
Posts: 1.776
Poder: 22
Bicho Va por buen camino
De la ayuda de delphi

Cita:
StringReplace function

Returns a string with occurrences of one substring replaced by another substring.

Unit

SysUtils

Category

string handling routines

type
TReplaceFlags = set of (rfReplaceAll, rfIgnoreCase);
function StringReplace(const S, OldPattern, NewPattern: string; Flags: TReplaceFlags): string;

Description

StringReplace replaces occurrences of the substring specified by OldPattern with the substring specified by NewPattern. StringReplace assumes that the source string, specified by S, may contain Multibyte characters.

If the Flags parameter does not include rfReplaceAll, StringReplace only replaces the first occurrence of OldPattern in S. Otherwise, all instances of OldPattern are replaced by NewPattern.

If the Flags parameter includes rfIgnoreCase, The comparison operation is case insensitive.
Espero te sirva.

Saludos
Responder Con Cita
  #4  
Antiguo 23-05-2007
Avatar de juanlaplata
juanlaplata juanlaplata is offline
Miembro
 
Registrado: ene 2007
Ubicación: La Plata, Bs. As. (Argentina)
Posts: 212
Poder: 18
juanlaplata Va por buen camino
Código Delphi [-]
Uses StrUtils;

AnsiReplaceStr(dondeCambio,queCambio,porCualLoCambio) ;
Espero te sirva, suerte.
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
multiusuarios delphi-interbase. Como hago?? yo_coco_py Firebird e Interbase 1 17-01-2007 22:29:46
Como hago esto en Delphi ? Markos1970 OOP 5 19-12-2005 15:40:29
Como hago una lista de autocomplento en Delphi Saul OOP 0 09-02-2005 19:20:45
como hago reportes en delphi 6 jas010 Impresión 2 27-01-2005 16:55:58
Autocad y Delphi ¿Como le hago? camc79 Gráficos 2 09-07-2004 22:15:53


La franja horaria es GMT +2. Ahora son las 19:40:49.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi