add a number at the beginning of the line?

If you need help on how to use the program
Post Reply
otreux
Posts: 199
Joined: 2008-10-22 16:55:46

add a number at the beginning of the line?

Post 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 :)
antp
Site Admin
Posts: 9714
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

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

Post 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.
otreux
Posts: 199
Joined: 2008-10-22 16:55:46

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

Post by otreux »

PERFECT...thanks :)
Post Reply