DIAdem Help

Property: StringSign for Formatter

  • Updated2024-09-12
  • 1 minute(s) read

Property: StringSign for Formatter

Specifies the character that identifies the beginning and the end of a text. The text identifier is ignored when the text is read. Text between two text identifiers are not interpreted when text is read.

Object.StringSign
ObjectFormatter
Object with this property
Object.StringSignString with read and write access

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

 "Cloudy";   18.8"Overcast"; 22.5"Sunny";    25.3"Cloudy";   21.2"Rain";     18.0

The StringSign property specifies the quotation mark as a text identifier.

File.Formatter.TrimCharacters = " "
File.Formatter.LineFeeds  = vbNewLine
File.Formatter.Delimiters = ";"
File.Formatter.StringSign = Char(34)

Dim oGrp   : Set oGrp = Root.ChannelGroups.Add("Measurements")
Dim oBlock : Set oBlock = File.GetStringBlock()
Dim oChn1  : Set oChn1 = oBlock.Channels.Add("Weather", eString)
Call oGrp.Channels.AddDirectAccessChannel(oChn1)
Dim oChn2  : Set oChn2 = oBlock.Channels.Add("Temperature", eR64)
Call oGrp.Channels.AddDirectAccessChannel(oChn2)