renumber

If you need help on how to use the program
Post Reply
Guest

renumber

Post by Guest »

Hello
I got something like this:

50 Movie1
51 Movie2
52 Movie3
53 Movie4
54 Movie5

and i need to do this:

50 Movie1
51 Movie2
53 Movie3
54 Movie4
55 Movie5


How to do it ???

(sory for my english, is not my good side :))
antp
Site Admin
Posts: 9668
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

You mean increasing by 1 the number of some movies ?
You can do it with the Scripting.
Select the movies to modify, then go to Tools -> Scripting, select "Editor" tab, click "New", and enter the following line between begin and end :

Code: Select all

SetField(0, IntToStr(StrToInt(GetField(0), 10) + 1));
Then Run this script, it should display a message saying it executed successfully.
Close the Window, now the number should have been changed.
Try to not get duplicate numbers, or the Loan window may have problems.
Guest

Post by Guest »

You mean increasing by 1 the number of some movies ?
...

Code: Select all

SetField(0, IntToStr(StrToInt(GetField(0), 10) + 1)); 
ohhh yessss :) You saved me from doing all catalog from begin :)
Thank You very much. :grinking:
Post Reply