Method: SkipLine for File
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > Method: SkipLine for File
Method: SkipLine for File
Skips one line in the file.
bSkipLine = Object.SkipLine
Object | File Object with this method |
bSkipLine | Boolean The value is TRUE if the method was successful. The value is FALSE when the end of the file is reached. |
The following example reads the following lines from a file.
XAxis¶ ¶ 1.000.000; 2.000; 301¶
These lines contain the name and the generation parameters of an implicit channel. The example skips the empty line that separates the information. The example then generates a channel group that contains an implicit channel.
File.Formatter.LineFeeds = vbNewLine File.Formatter.Delimiters = ";" File.Formatter.ThousandSeparator = "." Dim ChannelName: ChannelName = File.GetNextStringValue(eString) Call File.SkipLine() Dim StartValue : StartValue = File.GetNextStringValue(eI32) Dim Increment : Increment = File.GetNextStringValue(eI32) Dim ChannelSize: ChannelSize = File.GetNextStringValue(eI32) Dim oMyGrp : Set oMyGrp = Root.ChannelGroups.Add("MyChannelGroup") Call oMyGrp.Channels.AddImplicitChannel(ChannelName, StartValue, Increment, ChannelSize, eI32)