SRL Archive - FAQ

Simba using the replace function


[ ]

2019-11-17 01:14:55

What do I need to input into the last variable in the replace function>?

Replace

function Replace(Text, FindStr, ReplaceStr: string; Flags: TReplaceFlags): string;

I have no information on Flags besides Replace all equaling 0 and Ignore all equaling 1
and 0 and 1 don't work and neither do the variables associated with the 0 and 1 inputs

Can someone please tell me what I need to use a variable :cartman::cartman:

Olly

2019-11-17 10:13:18

It's a set of enums, so you can either have:
  • [rfReplaceAll, rfIgnoreCase]
  • [rfIgnoreCase]
  • [rfReplaceAll]
Or nothing:
[]