Thanks for eveyone's help, I did originally have the fontStyle for the entire field
as plain, and then just set the fontStyle of line 1 to bold, but ocassionally when the
field was made emptied then populated again, all lines were bold. With everyone's
suggestions, I now have a number of ways to do it.
Thanks again,
g fritzinger
>> "Pekka Buttler" <[EMAIL PROTECTED]> 06/21/01 09:26AM >>>
And what comes to your script, this is how I would do the same:
repeat with a = 2 to (member("selectedProds").linecount)
member("selectedprods").line[a].fontstyle = "plain"
end repeat
But I must say, the approach is Clunky to say the least
You could also try:
lastline = (member("selectedProds").linecount)
member("selectedprods").line[2..lastline].fontstyle = "plain"
or
member("selectedprods").fontstyle = "plain"
member("selectedprods").line[1].fontstyle = "bold" --(or whatever)
Pekka
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Pekka Buttler
> Sent: 21. kesakuuta 2001 16:16
> To: [EMAIL PROTECTED]
> Subject: RE: <lingo-l> using a repeat loop to change fontStyle of lines
> in a fieldmember
>
>
> Do it the other way around. Set the whole member to "plain", then set the
> first line to whatever ypu want.
>
> Pekka
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]