• Properties specific to the description of docNumbering variables
• Adding a numbering description to a document
• Using numberings created programmatically
WINDEV
WEBDEV
WINDEV Mobile
Others
docNumbering (Type of variable)
In french: docNumérotation
The docNumbering type is used to define the advanced characteristics of a numbering used in a Word Processing document. The characteristics of this numbering can be defined and modified by several WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Caution: This documentation presents the last features of the Word Processing control. Make sure that all the necessary modules are updated.
Example
MyDoc is Document = WP_NoName1
MyNumbering is docNumbering
Level is docNumberingLevel

// Define the numbering

// 1st numbering level
Level.Text = "%1) "
Level.Text = "%1) "
Level.InitialValue = 1
Level.PageLayout.IndentFirstLine = 10
Level.Format = numfRomanUppercase

// Second numbering level
Level.Text = "%2] "
Level.InitialValue = 1
Level.PageLayout.IndentFirstLine = 20
Level.Format = numfUppercaseLetter

// Third numbering level
Level.Text = "%3\ "
Level.InitialValue = 1
Level.PageLayout.IndentFirstLine = 30
Level.Format = numfLowercaseLetter

// Add the numbering to the document

// Define the numbering associated with paragraph 1
MyDoc.Paragraph[1].Numbering.Identifier = id
MyDoc.Paragraph[1].Numbering.Level = 1

// Display the document in the Word Processing control
WP_NoName1 = MyDoc
Remarks

Properties specific to the description of docNumbering variables

The following properties can be used to handle a numbering description:
Property name Type used Effect Identifier Integer Identifier of numbering. This identifier can be used to specify the numbering used by a paragraph.This property is defined when the numbering is added to the document. This property is read-only. Level Array of docNumberingLevel List of descriptions of numbering levels. Name Character string Name of numbering. Tmpl Character string Specific identifier for using the numbering in MS Word. This property is read-only.
Remark: These properties can be handled by using one of the following syntaxes:
• <Variable name>.<Property name>
• <Variable name>.<Property name>

Adding a numbering description to a document

To add a numbering description to a document, you have the ability to use Add with the following syntax: