Page 1 of 1

[PET] ¿Renombrar varios campos a la vez? (rename fields)

Posted: 2007-02-25 15:42:51
by RANICUAJO
Buenas ;)
Nunca lo hubiera pensado, pero ya llevo mas de 100 DVDses grabados y catalogados con el antmc.
El caso es que el campo "código del soporte" lo empece desde el 01 hasta el 99 y quisiera renombrarlo desde el 001 hasta el 099 para seguir con el 100...999. ¿alguna idea? :??:

how i can to "auto"change the field format for "media label" from 01..99 to 001...099 (insert one "0" before the actual label) Thanks :grinking:

Posted: 2007-02-25 16:54:54
by antp
Hi,
Use the following:

Code: Select all

program NewScript;
begin
  SetField(fieldMedia, '0' + GetField(fieldMedia));
end.

Fantastic work

Posted: 2007-02-25 17:28:55
by RANICUAJO
A Million thanks antp. Really works very well!! :)

What it seemed to me so complicated, has turned out to be very simple thanks to your aid.
Thanks again :grinking: :grinking: :grinking: