Subj Property

A String value. Gets or sets a string that contains a brief description (subject) of a document/library.

Applies to: Document object, Library object

Syntax

[[Let] subjRet =] object.Subj

[Let] object.Subj = subjSet

The Subj property syntax has these parts:

Part Description
object Required. An expression that returns an instance of an object from the Applies to list.
subjRet Optional. A String type variable.
subjSet Required. An expression that returns a String value.

Remarks

The Subj property contains an empty string for any new document or library. The Subj property can also be changed in the dialogs in ConceptDraw: "File->Document Properties->General" for a document, "Library->Library Properties" - for a library.

Example

This example contains an application-level script. It closes all open documents for which the Subj property contains an empty string.

' Loop that goes through all open documents 
' starting from the end.
For i=thisApp.DocsNum() To 1 Step -1

	' If the document has no subject, close it.
	if thisApp.Doc(i).Subj = "" OR thisApp.Doc(i).Subj = Null Then
		thisApp.CloseDoc( thisApp.Doc(i) )
	End If

Next i

 

See Also

Title property, Author property, Company property, Desc property