Search found 7 matches

by manolo7
2009-09-02 14:03:53
Forum: Ant Movie Catalog > Scripts
Topic: Running a script from another script
Replies: 2
Views: 1181

Thanks antp, I will try this, even if I wanted to use the original IMDb script without modifications. In the last days IMDb has made several changes that directly affect the script, so it's a good time for testing.
by manolo7
2009-09-01 09:23:31
Forum: Ant Movie Catalog > Scripts
Topic: Running a script from another script
Replies: 2
Views: 1181

Running a script from another script

It is possible to run a script from another script? I use the IMDb script only, but with some modifications. The script have some changes from time to time and I have to update it every time. So I'm looking for a way to avoid this. Running the IMDb script unmodified and making my own modifications o...
by manolo7
2009-06-19 17:17:59
Forum: Ant Movie Catalog > Scripts
Topic: Extract first line from a description field
Replies: 2
Views: 1054

Here is the solution for extracting the first line:

Code: Select all

var
s, t: string;
w: integer;

begin
s := GetField(FieldDescription);
w := Pos('<h3>Description',s);
t := copy(s, 1, w-3);
SetField(FieldLanguages, t);
end.
by manolo7
2009-06-19 13:44:13
Forum: Ant Movie Catalog > Scripts
Topic: Extract first line from a description field
Replies: 2
Views: 1054

Extract first line from a description field

In the past I used the DESCRIPTION field to collect "Languages", "Country" and "Description". The data was stored in this field with the HTML tag I need. Now I organize the catalog in a different way and I need to move "Languages" and "Country" from ...
by manolo7
2009-06-18 12:44:11
Forum: Ant Movie Catalog > Scripts
Topic: CR/LF (linebreak) in a field
Replies: 4
Views: 1339

I never noticed the StringReplace function before
Shame on me.
by manolo7
2009-06-18 12:27:25
Forum: Ant Movie Catalog > Scripts
Topic: CR/LF (linebreak) in a field
Replies: 4
Views: 1339

While is not exactly what I want, is an important step forward for me. I never noticed the StringReplace function before.

Thank you bad4u.
by manolo7
2009-06-18 10:51:31
Forum: Ant Movie Catalog > Scripts
Topic: CR/LF (linebreak) in a field
Replies: 4
Views: 1339

CR/LF (linebreak) in a field

Does anybody know how to find the CR/LF (linebreak) sequence in one of AMC fields (DESCRIPTION for example)? I need to replace a part of the field and that part contain some CR/LF.