Creates a character string from the data:
- found in a Word Processing control or in a Word Processing document.
- found in a paragraph of a Word Processing control.
This string can be saved in a specific format thereafter.
MyString is string
MyString = DocToText(WP_MyDocument)
// Save in a text file
fSaveText("C:\temp\Content.txt", MyString)
Syntax
<Result> = DocToText(<Document>)
<Result>: Character string
- Character string containing the data.
- Empty string ("") if an error occurred or if there is no data to extract.
<Document>: Document variable or control name
Document to use. This document corresponds to:
the name of a Word Processing control. - a variable of type Document.
- a variable of type docParagraph.