GetSpellErrorNum Method (Article)

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 17:07

Description

Return the number of spell checking errors in the current article.

Available in Ted and Fred.

Syntax

Dim lng as Long = object.GetSpellErrorNum(strLanguage)

object

Required. Object name. Returned by Ted.GetActiveArticle, or Fred.GetActiveArticle

strLanguage

Required. String. Language name, eg. "English".

Example

This script returns the number of spell errors in all elements of the current article, using the spell checker defined as "English".

If Ted.HasActiveArticle Then

 dim objArticle = Ted.GetActiveArticle

 msgbox (objArticle.GetSpellErrorNum("English"))

End If

See also

SpellCheckDlg, SpellCheck