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

ExportProperty

Use this command to export a specified property of variables of object type to an external text file.

Syntax

EXPORTPROPERTY ObjectVarName.Property Filename [APPEND]

where:

  • ObjectVarName is the object.
  • Property is the property of the object specified to export.
  • FileName is an ASCII file containing the data. It can include a complete or partial folder path in the format C:\...\FileName. If FileName includes spaces, enclose it in double quotation marks; for example:

    @"C:\My Documents\My Data.txt"

    Note: If the document is in the same location as lv_af.exe, you do not need to specify the drive or path. If the path specified does not exist, it will be created. The folder path can have a maximum length of 260 characters.

  • APPEND directs the command to place the variable’s value in a new line of an existing text file.

If the named text file does not exist, it is automatically created, even if APPEND is part of the command.

Caution: If the named text file already exists and APPEND is not designated, the existing text file will be overwritten and any data stored in it will be lost.

Syntax example

EXPORTPROPERTY TestObject.comments ExportObjectProperty.txt

Syntax example

EXPORTPROPERTY TestObject.anyNumber ExportObjectProperty.txt APPEND

Published:

ExportProperty

Use this command to export a specified property of variables of object type to an external text file.

Syntax

EXPORTPROPERTY ObjectVarName.Property Filename [APPEND]

where:

  • ObjectVarName is the object.
  • Property is the property of the object specified to export.
  • FileName is an ASCII file containing the data. It can include a complete or partial folder path in the format C:\...\FileName. If FileName includes spaces, enclose it in double quotation marks; for example:

    @"C:\My Documents\My Data.txt"

    Note: If the document is in the same location as lv_af.exe, you do not need to specify the drive or path. If the path specified does not exist, it will be created. The folder path can have a maximum length of 260 characters.

  • APPEND directs the command to place the variable’s value in a new line of an existing text file.

If the named text file does not exist, it is automatically created, even if APPEND is part of the command.

Caution: If the named text file already exists and APPEND is not designated, the existing text file will be overwritten and any data stored in it will be lost.

Syntax example

EXPORTPROPERTY TestObject.comments ExportObjectProperty.txt

Syntax example

EXPORTPROPERTY TestObject.anyNumber ExportObjectProperty.txt APPEND

For an optimal Community experience, Please view on Desktop