Hello and thanks for the responses

The problem seems to be connected to the combined field name
("field"&mycounter) in the scriptline.

I now solved it by putting the line into a hidden field, then getting the
field and then "do it".

Had the same problem in HyperCard, years ago, but assumed that the problem
wouldnt be the same in MetaCard.

Any better suggestions than collecting the script elements in a field and
then executing it?

Best regards

Carsten Levin

Ps. My answers to Dave Cragg is written in CAPITAL letters:

>Do you get an error, or does the font not change?
I GET AN ERROR, THE SCRIPT SIMPLY DOES NOT RECOGNIZE THE FIELDNAME - MAYBE
THE SYNTAX AND ELEMENTS ARE CHECKED BEFORE RUNNING THE SCRIPT AND THEREFORE
BEFORE THE COUNTER VALUE FROM THE REPETITION IS ASSIGNED TO "mycounter" AND
WHILE THE FIELD "field1-2-3-4-5...14" WHICH ARE THE CORRECT VALUES OF THE
EXRESSION DOES EXIST, THE FIELD "fieldmycounter" OF COURSE DOESNT.

>Did you really mean to start with "field0"? If not, put "add 1 to
>mycounter" at the head of the loop.
YOU ARE RIGHT - I REWROTE A SHORT VERSION OF THE SCRIPT AS AN EXAMPLE AND
MADE THE MISTAKE YOU CORRECTLY POINTS OUT.

>Is "times" installed on the computer? On Windows, it's more likely to
>be "Times New Roman".
YES TIMES IS INSTALLED ON THE MAC

>Has the text within the fields had its font set independently of the
>field setting? To get round that, you could try this:
>set the textfont of char 1 to -1 of field ("field"&mycounter) of card
>mycard to empty
>set the textfont of field ("field"&mycounter) of card mycard to "times"

NO - AND AFTER PUTTING THE TEXT INTO THE FIELD AND THEN EXECUTING IT IT
WORKS - BUT THIS COULD HAVE BEEN THE PROBLEM.

>Good luck
>Dave Cragg


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to