ReplaceTextAll
Syntax | CS.ReplaceTextAll (sOldText, sNewText, bMatchCase) |
---|---|
Use to | Replace all occurrences of “found” text with specified text. |
Parameters |
|
Comments | ReplaceTextAll replaces text only within a single cell of a field, not across cells. You can replace all specified tags or indicators or data separately, but not in combination. |
Return values | An integer representing the number of replacements. |
Example | Sub Main()
Dim CS As Object Dim sText As String If CS.IsOnline = False Then CS.Search “WC”, “#1” CS.CursorRow = 1 If CS.FindText(“XXX”, False) = False Then If CS.ReplaceTextAll(“Rand”, “XXX”, False) > 0 Then |
What this example does |
|