ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 times faster"
WP_MySalesDoc.AutoCorrect.Replace["10f"] = c
 
// Alternative syntax (without using the docAutoReplace variable)
WP_MySalesDoc.AutoCorrect.Replace["20f"] = "20 times faster"
d is Document
DocInsert(d, 1, "Hello")
 
WP_MySalesDoc.AutoCorrect.Replace["bb"] = d
 
d2 is Document
d2 <- WP_MySalesDoc.AutoCorrect.Replace["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: 02/28/2023

Send a report | Local help