Page 1 of 1

renumber

Posted: 2002-11-22 11:30:43
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 :))

Posted: 2002-11-22 11:53:18
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.

Posted: 2002-11-22 18:22:02
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: