Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

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.

Copy

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.

Copy

Syntax example

Create DOCUMENT MyDataView.lvdvw        
Copy

Synta xexample - With a file path

Create DOCUMENT \Testing\MyDataView.lvdvw        
Copy

Syntax example - With a file path that has spaces

Create DOCUMENT "\My Testing\MyDataView.lvdvw"            

See also

Published:

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.

Copy

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.

Copy

Syntax example

Create DOCUMENT MyDataView.lvdvw        
Copy

Synta xexample - With a file path

Create DOCUMENT \Testing\MyDataView.lvdvw        
Copy

Syntax example - With a file path that has spaces

Create DOCUMENT "\My Testing\MyDataView.lvdvw"            

See also

For an optimal Community experience, Please view on Desktop