Re: Sort Command in 3.5 is adding lines to a variable

2009-07-14 Thread Dom
Timothy Bleiler blei...@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

Re: Sort Command in 3.5 is adding lines to a variable

2009-07-14 Thread Hugh Senior
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==

Re: Sort Command in 3.5 is adding lines to a variable

2009-07-14 Thread Dom
Hugh Senior h...@flexiblelearning.com wrote: Try using 'filter' instead, just in case 'line 1' is no longer empty... A good cautiousness, indeed :-) Thanks! ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to

Sort Command in 3.5 is adding lines to a variable

2009-07-02 Thread Timothy Bleiler
Hi, 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. Is this a reported bug or am I missing something? To see the error, create a stack

Re: Sort Command in 3.5 is adding lines to a variable

2009-07-02 Thread Pierre Sahores
Try this ; Put Dog cr \ Cat cr into tTemp Put number of lines in word 1 to -1 of tTemp into tPreSortCount sort tTemp Put number of lines in word 1 to -1 of tTemp into tPostSortCount Put Pre-Sort, variable tTemp has tPreSortCount lines. return \ Post-Sort, variable tTemp has

Re: Sort Command in 3.5 is adding lines to a variable

2009-07-02 Thread Alex Tweedly
Pierre Sahores wrote: Try this ; Put Dog cr \ Cat cr into tTemp Put number of lines in word 1 to -1 of tTemp into tPreSortCount sort tTemp Put number of lines in word 1 to -1 of tTemp into tPostSortCount Put Pre-Sort, variable tTemp has tPreSortCount lines. return \ Post-Sort,

Re: Sort Command in 3.5 is adding lines to a variable

2009-07-02 Thread Timothy Bleiler
Yes, Pierre that form does give a consistent count of the number of lines in the variable. However, the question remains about why the sort command is moving the last cr to the first line which effectively adds a line at the beginning of the variable. If the sort command is treating the

Re: Sort Command in 3.5 is adding lines to a variable

2009-07-02 Thread Timothy Bleiler
Thanks Alex. There are a lot of ways to work around the problems caused by this. However, my main concern though is with the inconsistency in the engine regarding the cr in the variable. The engine is inconsistent in its definition of a line for these two lines of code: sort the lines of

Re: Sort Command in 3.5 is adding lines to a variable

2009-07-02 Thread Richard Gaskin
Paul Looney wrote: I have had the opposite happen. On a large variable, sorting removed lines. Rev 3.0, OS X 10.5 If memory serves, that was the result of a limitation of the sort command where it could only be used reliably on data in which no single line exceeded 65,535 chars. According

Re: Sort Command in 3.5 is adding lines to a variable

2009-07-02 Thread Timothy Bleiler
I agree with Richard. It looks like http://quality.runrev.com/qacenter/show_bug.cgi? id=7809 is NOT fixed. Can someone reopen the report? I think its severity should be changed to major. I will go back to using 3.0, for now. Tim Bleiler, Ph.D. Instructional Designer, HSIT University at

Re: Sort Command in 3.5 is adding lines to a variable

2009-07-02 Thread Ben Rubinstein
On 2/7/09 21:18, Timothy Bleiler wrote: I agree with Richard. It looks like http://quality.runrev.com/qacenter/show_bug.cgi?id=7809 is NOT fixed. Can someone reopen the report? I think its severity should be changed to major. I've re-opened this report - please feel free to add any

Re: Sort Command in 3.5 is adding lines to a variable

2009-07-02 Thread Paul Looney
Richard, It has been a while... I went back and checked my records. The problem (probably related to the number of characters per line) was thousands of NULL characters in the variable. When I removed the NULLs, everything worked fine. So now I always trap for NULLs before doing a sort - and

Re: Sort Command in 3.5 is adding lines to a variable

2009-07-02 Thread stephen barncard
Pasted-in NULL characters can also train wreck the GLX2 script editor. I use Tex-Edit (not Textedit) for quick text cleaning.I've seen text from a database serving Wordpress where users had pasted in NULLs with their text, not to mention curly quotes, etc. - Stephen

Re: Sort Command in 3.5 is adding lines to a variable

2009-07-02 Thread Nicolas Cueto
About good and simple text editors that can keep text clean (of null characters, in this case), Stephen Barncard recommended Tex-Edit but that's for Macs. Any similar recommendations for Windows? Or is Notepad sufficient? And please note the word simple :-) Thanks. -- Nicolas Cueto

Re: Sort Command in 3.5 is adding lines to a variable

2009-07-02 Thread stephen barncard
Well one could make a simple thing in a standalone replace numToChar(0) with empty in fld x (or any container, perhaps the clipboard) by the way NULL is a built in constant in Rev. - Stephen Barncard San Francisco http://barncard.com 2009/7/2 Nicolas Cueto

Re: Sort Command in 3.5 is adding lines to a variable

2009-07-02 Thread Pierre Sahores
Nicolas, About win rock-solid free editors : have an eye to Crimson Editor. one of the bests windows equivalents of a TextMate and TextWrangler mix, aka powerfull and fast in the same time. Best, -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com Le 3 juil. 09 à 00:52,