Sort Command in 3.5 is adding lines to a variable

Pierre Sahores psahores at free.fr
Thu Jul 2 14:48:25 EDT 2009


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" && tPostSortCount && "lines."

Hope this help,

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com


Le 2 juil. 09 à 20:24, Timothy Bleiler a écrit :

> 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 with a button, paste the following  
> code into the button and click on the button.
>
> On MouseUp
> Put "Dog" & cr & \
>      "Cat" & cr into tTemp
>  Put number of lines in tTemp into tPreSortCount
>  sort tTemp
>  Put number of lines in tTemp into tPostSortCount
>  Put "Pre-Sort, variable tTemp has" && tPreSortCount && "lines."&  
> return &\
>  "Post-Sort, variable tTemp has" && tPostSortCount && "lines."
> End MouseUp
>
>
> Tim Bleiler, Ph.D.
> Instructional Designer, HSIT
> University at Buffalo
> Phone: 716-829-3867
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>





More information about the use-livecode mailing list