DIAdem Help

Property: ExponentSeparator for Formatter

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

Property: ExponentSeparator for Formatter

Specifies the exponential character used in the file.

Object.ExponentSeparator
ObjectFormatter
Object with this property
Object.ExponentSeparatorString with read and write access

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

 15.12.1998 12:00:00; 2.84529E-0415.01.1999 12:00:00; 1.05914E-0414.02.1999 12:00:00; 2.84483E-0416.03.1999 12:00:00; 4.72043E-0416.04.1999 12:00:00; 5.47222E-0416.05.1999 12:00:00; 0.0001016.06.1999 12:00:00; 0.0001216.07.1999 12:00:00; 0.00015

The ExponentSeparator property defines an E as the exponential character:

File.Formatter.TrimCharacters = " "
File.Formatter.LineFeeds  = vbNewLine
File.Formatter.Delimiters = ";"
File.Formatter.Timeformat = "DD.MM.YYYY hh:mm:ss"
File.Formatter.DecimalPoint = "."
File.Formatter.ExponentSeparator = "E"

Dim oGrp  : Set oGrp = Root.ChannelGroups.Add("Measurements")
Dim oBlock: Set oBlock = File.GetStringBlock()
Dim oChn  : Set oChn = oBlock.Channels.Add("Time", eTime)
oGrp.Channels.AddDirectAccessChannel(oChn)
Set oChn = oBlock.Channels.Add("YShift", eR64)
oGrp.Channels.AddDirectAccessChannel(oChn)

Log in to get a better experience