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
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Gene Fritzinger
> > Sent: 21. kesakuuta 2001 16:06
> > To: [EMAIL PROTECTED]
> > Subject: <lingo-l> using a repeat loop to change fontStyle of lines in a
> > fieldmember
> >
> >
> > Good morning list,
> > Can anyone suggest a repeat loop for changing the fontStyle of
> > lines 2 through lineCount of a field member to "plain" ? I've
> > tried variations of the script below with no success.
> >
> > repeat with i = line 2 to the lineCount of member "selectedProds"
> > set the fontStyle of line i of member "selectedProds" to "plain"
> > end repeat
> >
> > Thanx in advance,
> > g fritzinger
> >
> >
> > [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!]
> >
>
>
> [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!]
>
[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!]