ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The AutoCorrect property allows you to define a set of automatic corrections to be applied in a Word Processing control as the user types.
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
Syntax

Getting an automatic replacement value Hide the details

<Result> = <Word Processing control>.AutoCorrect.Replace[<Original string>]
<Result>: docAutoReplace variable
docAutoReplace variable with the value that replaces the original string.
<Word Processing control>: Control name
Name of the Word Processing control used.
<Source string>: Character string
String in the Word Processing control to be replaced as the user types.

Setting an automatic replacement value Hide the details

<Word Processing control>AutoCorrect.Replace[<Original string>] = <New value>
<Word Processing control>: Control name
Name of the Word Processing control used.
<Source string>: Character string
String in the Word Processing control to be replaced as the user types.
<New value>: String or variable of type docAutoReplace
  • String that will replace the original string.
  • Name of the docAutoReplace variable to be used to replace the string.
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help