PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Properties specific to the description of docNumbering variables
  • Adding a numbering description to a document
  • Using numberings created by programming
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
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 using different WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Example
MyDoc is Document = WP_NoName1
MyNumbering is docNumbering
Level is docNumberingLevel
 
// Define the numbering
 
// 1st numbering level
Level.Text = "%1) "
Level.Text = "%1) "
InitialValueLevel = 1
FirstLine.Set-Up.Removal.Level = 10
Level Format = numfRomanUppercase
Adds(MyNumber.Level, Level)
 
// Second numbering level
Level.Text.="%2] "
InitialValueLevel = 1
FirstLine.Set-Up.Removal.Level = 20
Level Format = numfUppercaseLetter
Adds(MyNumber.Level, Level)
 
// Third numbering level
Level.Text = "%3 _ASLASHE_".
InitialValueLevel = 1
FirstLine.Set.Up.Removal.Level = 30
Level Format = numfLowercaseLetter
Adds(MyNumber.Level, Level)
 
 
// Add the numbering to the document
OR id = Add(MyDoc.Numbering, MyNumbering)
 
// 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 nameType usedEffect
IdentifierIntegerIdentifier 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 available in read-only.
LevelArray of docNumberingLevelList of descriptions of numbering levels.
NameCharacter stringName of numbering.
TmplCharacter stringSpecific identifier for using the numbering in MS Word.
This property is available in 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:
Adds(Document.Numbering, MyNumbering)
where:

Using numberings created by programming

The numberings created by programming can be used via the ribbon. They appear in the ribbon, in the "Paragraphs" group, by expanding the Numbering option, in the "Document numbering" group.
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment