DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

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
ObjectStringChannelFormatter
Object with this property
Object.NoValueSignString with read and write access

The following example shows the settings required for reading the lines listed below:

 0,001234; 1,9414340,002398; $$$¶
NV; 3,4514960,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)
In This Section
Was this information helpful?