23489Re: [Clip] Re: Would like better way to increment filename by one
- Dec 6, 2012On 7/12/2012 3:58 AM, joy8388608 wrote:
> I usually use farclips instead of functions since I can call them fromJoy
> any library. The calling clip sets a variable and the result(s) are
> passed back in another variable.
Your clip gots rid of the Loop I used with this RegEx. So it is faster.
I like that.
You mentioned you use farclips rather than functions. I have sometimes
used a local function called farfunc, so I get the convenience of a
function (used inline), and the re-usability of a far clip. You have to
modify your far clips to give the result in the variable ^%outvalue%
; FarFunc can call some functions in another clipbook
; expected parameter: farlibrary:farclip;param1;param2;paramX
; assign the input to a variable
; make an array of the input
; Get just the parameters by removing the farlibrary and the farclip part
; call the far clip
^!farclip "^%part1%" ^%param%
; return the result
That may make your basic code look more elegant.
- << Previous post in topic Next post in topic >>