Property: NoValueSign for StringChannelFormatter
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Properties > Property: NoValueSign for StringChannelFormatter
Property: NoValueSign for StringChannelFormatter
Specifies the NoValue character used in a channel.
If you do not use the property NoValueSign to specify an individual NoValue character, the DataPlugin uses the general NoValue character to read in the channel. Use the Formatter.NoValueSign property to specify the NoValue character generally used in the file.
Use the NoValueSign property to assign an individual NoValue character to an empty string, so that the general NoValue character is valid for this channel.
Object.NoValueSign
Object | StringChannelFormatter Object with this property |
Object.NoValueSign | String with read and write access |
The following example shows the settings required for reading the lines listed below:
0,001234; 1,941434¶ 0,002398; $$$¶ NV; 3,451496¶ 0,001628; $$$¶ 0,001683; 5,261483¶
The NoValueSign property specifies NV as NoValue character of the file and a special NoValues character, which is only valid for the second channel.
File.Formatter.TrimCharacters = " " File.Formatter.LineFeeds = vbNewLine File.Formatter.DecimalPoint = "," File.Formatter.Delimiters = ";" File.Formatter.NoValueSign = "NV" Dim oBlock, oGrp, oChn Set oBlock = File.GetStringBlock() Set oGrp = Root.ChannelGroups.Add("MyChannelGroup") Set oChn = oBlock.Channels.Add("Date1",eTime) Call oGrp.Channels.AddDirectAccessChannel(oChn) Set oChn = oBlock.Channels.Add("Date2",eTime) oChn.Formatter.NoValueSign = "$$$" Call oGrp.Channels.AddDirectAccessChannel(oChn)