|
|
|
|
|
- Properties specific to docAutoReplace variables
docAutoReplace (Type of variable) 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 . The characteristics of this automatic correction can be defined and changed using different WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. c is docAutoReplace
c.NewString = "10 times faster"
WP_MySalesDoc.AutoCorrect.Replace["10f"] = c
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
Properties Properties specific to docAutoReplace variables The following properties can be used to handle docAutoReplace variables: | | | Property name | Type used | Effect |
---|
NewString | Character string | String containing the correction. Remark: The NewString property takes precedence over the NewFormattedString property (if it exists). | NewFormattedString | Document | New string, as a document that can contain formatting. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|