changeword
changeword
FROM
,
TO

The changeword statement replaces one word with another in the current field (selected records only).

Parameters

This statement has two parameters:

from – word to change.

to – new replacement word.

Description

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.

    changeword "one","uno"

This statement will only work for words that are either all lower case (`three`), all upper case (`THREE`) or with the first letter capitalized (`Three` or `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.

See Also

- change -- replaces text with new text in the current field (selected records only).
- changewordexact -- replaces one word with another in the current field (selected records only).

History

Version | Status | Notes
10.0 | Updated | New in this version, but implements part of the functionality of the change statement in legacy versions of Panorama.