Macro Reference — CharacterRanges Collection — AddString Method (CharacterRanges Collection)

# AddString Method (CharacterRanges Collection)

Adds a string.

##

### [JavaScript]

    list.AddString( sFind, sTreatAs );

### [VBScript]

    list.AddString sFind, sTreatAs

## Parameters

sFind

Specifies a string to search for.

sTreatAs

Specifies a string to be substituted for. If an empty string is specified, the specified range will be ignored.

## Version

Supported on EmEditor Professional Version 22.0 or later.