DIAdem Help

Method: SkipValue for File

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

Method: SkipValue for File

Skips a value in a line.

bSkipValue = Object.SkipValue
ObjectFile
Object with this method
bSkipValueBoolean
The value is TRUE if the method was successful.

The following example reads the following line from a file.

XAxis; ;1.000.000; 2.000; 301

This line contains the name and the generation parameters of an implicit channel. The example skips the text between the channel name and the start value of the generation parameters. 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.SkipValue()
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)

Log in to get a better experience