DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Beginline of my data plugin should be after more than 200 lines???

hello,
 
i have done my own data-plugin with the DIADEM dataplugin assistent but i have a little problem... my .txt file has more then 200 lines i want to ignore and so i want to start after that lines!!!
i have first deleted the lines i want to ignore and then i have done my plugin with the assistent...but now i dont want to delete this lines in every file i have of this type...i just want to skip them...
could somebody tell me what i have to add in the VBS script to do this?? i think somthing like ".skiplines" but i dont know where i have to place this because i just get started with VBS...
 
thanks a lot!!!
 
greats andreas
0 Kudos
Message 1 of 5
(3,703 Views)
"Call File.SkipLine()" should work for you.  This will only skip one line so you will have to run some sort of loop structure to skip the required amount of lines.
0 Kudos
Message 2 of 5
(3,692 Views)

thanks!!

and where in the script of my dataplugin i have to place this loop???

0 Kudos
Message 3 of 5
(3,689 Views)

You can place the loop anywhere you need to skip lines of your data file.  I my dataplugin, I read two blocks then skip a line then read the rest of the file.

 

Hope this helps.

AJL

 

Posting you dataplugin with a data file may help you get to a solution faster.

0 Kudos
Message 4 of 5
(3,678 Views)

Hi Guys,

There is also a method for skipping multiple lines:

File.SkipLines(NumberToSkip)

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 5 of 5
(3,660 Views)