Page 1 of 1

add a number at the beginning of the line?

Posted: 2018-09-01 08:25:11
by otreux
Is it possible, using a script, to add a number (without deleting the field) at the beginning of the Source field?

For example, I have in the source field:

Eastwood Clint

I want:

1 - Eastwood Clint

the problem is that, for reasons of space, I had to divide my film collection into 2 Hard disk and I would like to put a number in front of the actor / director's name to quickly find out what Hard Disk is in

Thanks :)

Re: add a number at the beginning of the line?

Posted: 2018-09-01 16:29:12
by antp
You just want to add a "1" in front of the field for all selected movies?
You can do this:

Code: Select all

program newscript;
begin
  SetField(fieldSource, '1 - ' + GetField(fieldSource));
end.

Re: add a number at the beginning of the line?

Posted: 2018-09-03 19:23:55
by otreux
PERFECT...thanks :)