StrSubst$

 

Purpose:

Searches a string for the appearance of a search string and replaces it with the string contained in the third parameter (replacement string). If no third parameter is used, the string located using the search string will be deleted.

Parameter:

String

String             Search string

String             (optional) Replacement string

Return value:

String

Example:

Assume that you want to print address labels that contain the company name. You do not have much space available on the label and cannot afford to completely print long company names, for example, "Forrer Construction, Incorporated”.

With the expression StrSubst$(COMPANY,"Incorporated","Inc.") every appearance of "Incorporated" in the COMPANY field will be replaced with "Inc."