Skip to main content
Skip table of contents

p$TDV:Util:Replace


p$TDV:Util:Replace

Replace all occurrences of text searched within an original text with a replacement text. The resulting text is returned.

Both texts can consist of as many characters as desired, and an empty string (") can be entered for the replacement text. This function is case-sensitive.

The function f$replace should be used instead of this procedure.

Syntax:

NewText = p$TDV:Util:Replace( Text, SeaText , ReplText )

 

Argument

Type

Meaning

 

Text

String

The text in which a replacement is to be made

 

SeaText

String

The text which is to be replaced

 

ReplText

String

The text which is to be inserted in the other's place

Result:

String

New compiled text

Examples:

Text = p$TDV:Util:Replace( '3.14', '.', ',')àText = '3,14'

Text = p$TDV:Util:Replace( 'M 4 x 20', ' ','' )àText = 'M4x20'

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.