Page 1 of 1

[SOLVED] VERY small help for new script writer

Posted: 2008-11-26 20:53:27
by zakk
Hi, I need a very small help:

I try to replace the "original title" by the "translated title" field then delete the "translated title":

------------------------------------------------------------------------
program NewScript;
begin
SetField(fieldOriginalTitle, GetField(fieldTranslatedTitle));
SetField(fieldTranslatedTitle, '');
end.
-------------------------------------------------------------------------

the original field is filled correctly, but the translated title won't be deleted, even if the pop-up window during script execution shows the correct expected result. So I end up with two identical fields.

Is there something wrong with my last line. Any idea ? :??:

Thanks !

Posted: 2008-11-26 20:58:29
by antp
Check that the option "allow to clear fields" is activated (on the right, above options list, in the scripts window)

Posted: 2008-11-26 21:19:32
by zakk
Super merci!
Je n'étais jamais sur cette fenetre pcq mes scripts persos n'apparaissent pas.
Géant ton soft :wink:

Posted: 2008-11-26 21:32:16
by antp
Par défaut seules les scripts qui importe des infos du web (une des infos que l'on peut spécifier dans les propriétés du script) apparaissent dans la liste de la fenêtre appelée via "get info from script".
Il faut appeler la fenêtre via outils -> scripting, et là on a tous les scripts, et d'autres options par défaut, plus adaptées aux scripts en tout genre qu'aux scripts de récup d'infos ;)

Posted: 2008-11-26 21:36:39
by zakk
Ah ouais...c'était vicieux! :hihi: