Hi Gene
YOu might not need to construct a repeat loop at all, rather, copy the text
straight across
put field(x).line[a..b] after field(y)
might do the trick for you (off the top of my head.. which isn't saying much
;-)
sincerely
Mark R. Jonkman
-----Original Message-----
From: Gene Fritzinger [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 1:07 PM
To: [EMAIL PROTECTED]
Subject: <lingo-l> Repeating through hilited lines to get the text of
each line
Hi List,
I'm having trouble constructing a repeat loop to copy the text of the
hilited lines of one field to another field member. I have a field
member "Accounts", the user can click on a line in the field to hilite
it, then holding down the SHIFT key, click on another line below to
select a range of accounts. (all become hilited). I will know the line
numbers of the first and last hilited lines. What I need to do, is get
the text of each of the hilited lines and copy them to another field
member. Here's where I'm at:
a = member("Accounts").line gFirstClick
b = member("Accounts").line gLastClick
repeat with i = a to b
put the text of line[i] of member "Accounts" & RETURN after member
"AccountsSelected"
end repeat
Thanx in advance for any help with this,
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!]