Using the Delphi String Replace Function

Delphi String Replace Function takes 4 parameters. first parameter string to be changed 2. parameter string to change 3. parameter to be replaced by string to replace. 4. The parameter is in array type. specifies additional features for the change.

 input , output: string;

  input := 'Hallo World Laarning Dalphi';

  output:= stringreplace(input , ' a ', ' e',  [rfReplaceAll, rfIgnoreCase]);
  ShowMessage('first= '+input );
  ShowMessage('after= '+output);



first= Hallo World Laarning Dalphi
after= Hello World Learning Delphi


Tagged In:

Software developer

26 Total Posts