Sort Command in 3.5 is adding lines to a variable
Dom
mcdomi at free.fr
Tue Jul 14 11:01:25 EDT 2009
Timothy Bleiler <bleiler at buffalo.edu> wrote:
> The sort command in 3.5 seems to be adding lines to a variable. I have
> a lot of old code that creates lists using a method like this and I
> don't believe the problem occurs in earlier versions of rev.
I have seen something like this with a On-Rev procedure...
I have a folder with numbered images (1.jpg 2.jpg and so on)
Sorting adds an empty line:
==CODE==
function listThumbs
put "ls Thumbnails" into tCmd
put shell(tCmd) into tPhotoList
sort numeric tPhotoList
delete line 1 of tPhotoList -- sorting adds an empty line!?
return tPhotoList
end listThumbs
======
Wonder if the on-line version of Rev is a sister of the desktop version
;-)
More information about the use-livecode
mailing list