ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Word Processing functions / Types of variables
  • Properties specific to docAutoReplace variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
docAutoReplace (Variable type)
In french: docRemplacementAutomatique
The docAutoReplace type is used to define all the advanced characteristics of a string used to automatically replace another string as the user types in a Word Processing control . You can define and change the characteristics of this automatic correction using different WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
c is docAutoReplace
c.NewString = "10 fois plus vite"
TT_MondocCommercial.CorrectionAutomatique.Remplacement["10f"] = c

// Autre syntaxe acceptée (sans passer par la variable docRemplacementAutomatique)
TT_MondocCommercial.CorrectionAutomatique.Remplacement["20f"] = "20 fois plus vite"
d is Document
DocInsert(d, 1, "Bonjour")

TT_MondocCommercial.CorrectionAutomatique.Remplacement["bb"] = d

d2 is Document 
d2 <- TT_MondocCommercial..AutoCorrect.Remplacement["bb"]..NewFormattedString
Properties

Properties specific to docAutoReplace variables

The following properties can be used to handle docAutoReplace variables:
Property nameType usedEffect
NewChainCharacter stringString containing the correction.
Note: The New String property takes precedence over the New Formatted String property (if it exists).
NewFormattedStringDocumentNew string, as a document that can contain formatting.
Note: This property can also correspond to a variable of type docParagraph, docElement, ...
Minimum version required
  • Version 28
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help