VirtualString.Replace(String, String) Method

Top 

Description

Returns a modified copy of the calling VirtualString in which all occurences of stringToReplace have been replaced with replacementString.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

Click here to see the documentation for this object in nanosecond timing precision mode.

 

Method Signature

VirtualString.Replace(

String stringToReplace,


String replacementString)

 

 

Arguments

stringToReplace


Description:

The string or character to find and replace in the returned String.

 

 

replacementString


Description:

The string or character to use in place of the substrings matched by stringToReplace.

 

 

 

Return Value

Type:

string

 

 

Returns a modified copy of the calling VirtualString in which occurences of stringToReplace have been replaced with replacementString.

 

Syntax

myString1 = myString2.ToLowercase().Replace(myString3, myString4);

 

 

See also

VirtualString Object

VirtualString.Replace