Topic: Splitter.vdm question (1 of 2), Read 87 times
Conf: VEDIT Macro Language Support
From: Paul Falzer
Date: Tuesday, January 25, 2000 10:22 AM

I would like to break one file into many small files, using a pattern in the text "\page|N" as the break point. Can I modify splitter.vdm to accomplish this move, and if so what is the syntax?

 


Topic: Re: Splitter.vdm question (2 of 2), Read 108 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Wednesday, January 26, 2000 10:31 PM

Line 80 of SPLITTER.VDM has the commands:

Goto_Pos(#106) Line(1,NOERR) // Move down one segment and to next line

You can change this to:

Goto_Pos(#106) // Move down one segment
Search("\Page",NOERR) // Optionally search for something that
// provides a good split between files
Line(1,NOERR) // Advance so files split on complete lines

I haven't tested this, but it should work. You might want to
change the search string to "\Page|n" for your particular needs.