I need a function which return "1,2,3" from 3.
(I use it for a "Select all" menuitem)
Something like fromNbLineToItems() but I guess there is a shorter way:
Code: Select all
on selectAllLinesFld pFld
set the hilitedlines of fld pFld to fromNbLineToItems(the num of lines of fld pFld)
end selectAllLinesFld pFld
function fromNbLineToItems pNum
put empty into tLesHi
repeat with i = 1 to pNum
put i & "," after tLesHi
end repeat
delete char -1 of tLesHi
return tLesHi
end fromNbLineToItems
Jean-Marc