Skip to main content

Create Document

Use this command in conjunction with the Write command to create a document in the document cache. You may find this useful when your application needs to create code dynamically. For example, you may need to create a DataSpec document in which the number of temporary symbols is unknown until run time.

Syntax:

CREATE DOCUMENT DocName

where:

  • DocName is the name for the document in the document cache and must be unique. Optionally, you can include a file path. All file paths are relative to the document cache. If the path includes spaces, you must enclose it in double quotation marks.

Note: You do not need to specify a file extension; however, keep in mind that when you Write the document or Save it to a physical file, you must specify the name exactly as in the Create Document statement, including the path and extension.

Syntax example:

Create DOCUMENT MyDataView.lvdvw

Synta xexample - With a file path

Create DOCUMENT \Testing\MyDataView.lvdvw

Syntax example - With a file path that has spaces

Create DOCUMENT "\My Testing\MyDataView.lvdvw"

See also

Was this article helpful?

We're sorry to hear that.