Documentation Center

PslSourceList.StringCount

Returns the number of strings in this list. If the list is still closed, it will be opened.

Syntax

Expression.StringCount (optional Type as VARIANT) as Long

Expression Object of type PslSourceList

Type Can be one of the following values:

pslIndex (default, Value = 0): The total number of (undeleted) strings will be returned.

pslIndexDeleted (Value = 4): The total number of deleted strings in the recycle bin will be returned.

pslDisplay (Value = 1): The number of displayed strings will be returned. This value is supported for backward compatibility only. See the note below.

pslSelection (Value = 2): The number of selected strings will be returned. This value is supported for backward compatibility only. See the note below.

The following values use the stored counters in the project. The string list does not need to be loaded, which makes the call much faster.

pslTotal (Value = 100): Returns the total number of strings. Same as pslIndex

pslToTranslate (Value = 101): Returns that number of strings that need to be translated. This is pslTotal minus empty strings and strings that don't need to be translated, e.g. hidden or read-only strings.