Object: Formatter
- Updated2024-09-12
- 1 minute(s) read
(General | Objects) > DataPlugin > File > Object: Formatter
Object: Formatter
The Formatter object contains information about the format of the file that the DataPlugin is currently processing.
The following example sets the Formatter object properties that are required for reading the following values:
28.06.2004 16:28:20; 0,001234¶ 28.06.2004 16:28:21; 0,002398¶ 28.06.2004 16:28:22; 0,001296¶ 28.06.2004 16:28:23; 0,001628¶ 28.06.2004 16:28:24; 0,001683¶ File.Formatter.TrimCharacters = " " File.Formatter.LineFeeds = vbNewLine File.Formatter.TimeFormat = "DD.MM.YYYY hh:mm:ss" File.Formatter.Delimiters = ";" File.Formatter.DecimalPoint = "," Dim ValueTime, Value While (File.Position <> File.Size) Set ValueTime = File.GetNextStringValue(eTime) Value = File.GetNextStringValue(eR64) Call File.SkipLine() Wend
Properties
ByteOrder | CharacterFormat | CommentSign | DecimalPoint | Delimiters | ExponentSeparator | IgnoreEmptyLines | LineFeeds | NoValueSign | StringSign | ThousandSeparator | TimeFormat | TrimCharacters