The WPGET function returns the contents of a field from a Write document. WPGET can be used from within Write documents, Spreadsheet files and Database forms.
document is the name of a document and must include the full path if not in the same directory as the open document. The document extension (.aww) is not required.
fieldname is the name of the required field.
Both parameters need to be surrounded by quotes if supplied as direct references into the function.
For example:
=WPGET("myreport", "myfield")
returns the contents of the field named myfield in the Write document called myreport, which must reside in the current directory.
=WPGET(targetdoc, targetfld)
would return the same if the local fields targetdoc and targetfld simply contain the text myreport and myfield respectively.
To return a field from a document in a specific directory, use the full path as follows:
=WPGET("C:\My Documents\myreport", "myfield")
See also: