At 2:05 PM +0100 17/3/01, Carsten Levin wrote:
>Hello,
>
>I want to change 14 fields on one page from one font to another font. And I
>want to do it with a repetition, instead of having 14 scriptlines.
>
>The fields are named field1, field2 etc.
>
>on changefont
>put 0 into mycounter
> repeat until mycounter is 14
> set the textfont of field ("field"&mycounter) of card mycard to times
> add 1 to mycounter
> end repeat
>end changefont
>
>Tried with and without quotation marks and with and without brackets.
>
>But it doesnt work. Any advise?
Do you get an error, or does the font not change?
Did you really mean to start with "field0"? If not, put "add 1 to
mycounter" at the head of the loop.
Is "times" installed on the computer? On Windows, it's more likely to
be "Times New Roman".
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"
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.