Sort Command in 3.5 is adding lines to a variable

Hugh Senior h at FlexibleLearning.com
Tue Jul 14 11:17:04 EDT 2009


Try using 'filter' instead, just in case 'line 1' is no longer empty...

function listThumbs
        put "ls Thumbnails" into tCmd
        put shell(tCmd) into tPhotoList
        sort numeric tPhotoList
        filter tPhotoList without empty
        return tPhotoList
end listThumbs


/H


> ==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



More information about the use-livecode mailing list