The changeword statement replaces one word with another in the current field (selected records only).
This statement has two parameters:
from – word to change.
to – new replacement word.
This statement replaces one word with another in the current field (selected records only). Only entire words are replaced. This statement is quite smart – it knows about punctuation, and it will match the capitalization of the word being replaced.
This example will scan thru the current field and replace every occurence of the word one with the word uno. It will not replace words that contain the letters o n e, for example someone or oneida.
This statement will only work for words that are either all lower case (
three), all upper case (
THREE) or with the first letter capitalized (
Apple Computer). It will not work for text that has other capitalizations, for example
McConnell (and by “not work”, we mean the text will not be replaced at all). Use the changewordexact statement if the word to be replaced has non-standard capitalization.
|10.0||Updated||New in this version, but implements part of the functionality of the change statement in legacy versions of Panorama.|