Use blank strings in an import file
- Last UpdatedJul 02, 2024
- 1 minute read
For a dictionary import file, there is a difference between a field containing a blank string and a field without data. Keyword attributes that can be assigned a blank string are:
|
Comment |
Eng Units |
OffMsg |
|---|---|---|
|
InitialMessage |
OnMsg |
Application |
|
ItemName |
Topic |
In the following example, a blank string is indicated by quotation marks (" "):
:Comment="HI"
:MemoryDisc,Comment,Group
Tagname1,,$System
Tagname2,"",$System
where:
The value of the Comment field for Tagname1 is Hi, and the value of the Comment field for Tagname2 is a blank comment.
Microsoft Excel ignores quotation marks that denote a blank string when it saves the file, resulting in the following:
:Comment="HI"
:MemoryDisc,Comment,Group
Tagname1,,$System
Tagname2,,$System
To ensure that a blank string is used with Excel, type a space in the cell as the attribute value.