DIAdem Help

Property: LineFeeds for Formatter

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

Property: LineFeeds for Formatter

Specifies the characters that indicate the line ends in the file. Use the GetLineFeed for File method to automatically determine the end of line character of a file.

Object.LineFeeds
ObjectFormatter
Object with this property
Object.LineFeedsString with read and write access

For example, use the following constants to identify the end of line.

ConstantValueDescription
vbCrChr(10)Carriage return
vbCrLfChr(13)&Chr(10) Carriage return - line feed
vbFormFeedChr(12)Form feed
vbLfChr(10)Line feed
vbNewLineChr(13)&Chr(10) or Chr(10) Platform-specific line feed character

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

 XAxis; 1.000.000; 2.000; 301

The LineFeeds property interprets the character combination Chr(13)&Chr(10) as the end of the line.

File.Formatter.TrimCharacters = " "
File.Formatter.LineFeeds = vbNewLine
File.Formatter.Delimiters = ";"
File.Formatter.ThousandSeparator = "."
Dim ChannelName : ChannelName = File.GetNextStringValue(eString)
Dim StartValue  : StartValue  = File.GetNextStringValue(eI32)
Dim Increment   : Increment   = File.GetNextStringValue(eI32)
Dim ChannelSize : ChannelSize = File.GetNextStringValue(eI32)