Description
Checks-out or checks-in the article.
If nToggle is 1 the article is checked out; if nToggle is 0 the article is checked in; if nToggle is 2 (or any other value different from 0 and 1 actually) the article is checked out if it was checked-in and vice-versa.
Note: when the article is checked out, it is refreshed at the same time.
Available in Ted and Fred.
Syntax
object.ToggleCheck nToggle |
object
Required. Object name. Returned by Ted.GetActiveArticle.
nToggle
Required. Toggle number. 2 or SwitchToggle constant.
Example
System script ArticleToggleCheck:
If Ted.HasActiveArticle Then
Ted.GetActiveArticle.ToggleCheck (SwitchToggle)
End If
Testing if the article was checked-out:
If objarticle.togglecheck (switchon) = EOK Then
...
Context
Article object
See also