adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / StringUtil Class / ReplaceString Method / ReplaceString(String,String,String,String,StringComparison) Method
The string to search
The string to search for
The replacement string
The resulting string
The comparison type to use


In This Topic
    ReplaceString(String,String,String,String,StringComparison) Method
    In This Topic
    Performs a string replacement using the specified comparison operator (case-insensitive by default).
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function ReplaceString( _
       ByVal stringToSearch As String, _
       ByVal oldValue As String, _
       ByVal newValue As String, _
       ByRef result As String, _
       Optional ByVal comparison As StringComparison _
    ) As Boolean

    Parameters

    stringToSearch
    The string to search
    oldValue
    The string to search for
    newValue
    The replacement string
    result
    The resulting string
    comparison
    The comparison type to use

    Return Value

    true if any replacements were made, false otherwise
    See Also