[SOLVED] VERY small help for new script writer

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
Post Reply
zakk
Posts: 28
Joined: 2008-11-26 20:41:22

[SOLVED] VERY small help for new script writer

Post 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 !
Last edited by zakk on 2008-11-26 21:18:13, edited 1 time in total.
antp
Site Admin
Posts: 9652
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Check that the option "allow to clear fields" is activated (on the right, above options list, in the scripts window)
zakk
Posts: 28
Joined: 2008-11-26 20:41:22

Post by zakk »

Super merci!
Je n'étais jamais sur cette fenetre pcq mes scripts persos n'apparaissent pas.
Géant ton soft :wink:
antp
Site Admin
Posts: 9652
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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 ;)
zakk
Posts: 28
Joined: 2008-11-26 20:41:22

Post by zakk »

Ah ouais...c'était vicieux! :hihi:
Post Reply