select all lines of list field

Jan Schenkel janschenkel at yahoo.com
Fri May 17 17:24:01 EDT 2002


--- cowhead <cowhead at ztv.ne.jp> wrote:
> To select ALL the lines of a list field, the
> following script works well
> enough, but seems a bit silly.  Easier way?
> 
> on XXX
> repeat with i = 1 to the number of lines of field
> myfield
> put i & "," after myVar
> end repeat
> set the hilitedLines of field myField to myVar
> end XXXX
> 

try this

on XXX
  select line 1 to -1 of field myField
end XXX

That ought to do the trick :-)

Best regards,

Jan Schenkel.

"As we grow older, we grow both wiser and more foolish
at the same time."  (De Rochefoucald)

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com



More information about the use-livecode mailing list