Thanks for all the suggestions. Changing scope solved it! :)

Beverly

On 11/3/08 9:01 PM, "janet" <[EMAIL PROTECTED]> wrote in whole or in part:

> Hi Beverly
> 
> I have not had your exact problem, but I do add one step to avoid problems.
> 
> ASSIGN <my_array value=resultset>
> 
> ASSIGN <name=sorted_array value=<@SORT my_array>>
> 
> Then I use @@Request$sorted_array.
> 
> I also do this when filtering arrays.
> 
> Hope this helps Janet
> 
> 
> -----Original Message-----
> From: Beverly Voth [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 03, 2008 1:45 PM
> To: witango-talk@witango.com
> Subject: Witango-Talk: Witango and @SORT for arrays
> 
> I have a large solution that worked well until "SORTING" a list was
> requested.
> 
> We make the SQL query and it's stored in an array (because it's far to
> complex to requery to get the "next 15" set of records for the list
> display).
> 
> So a link on the list page is passing the sortType to be performed and an
> @IF tests for the sortType. It then performs an <@SORT ARRAY....> on the
> columns requested.
> 
> It "seems" to work the first time you sort. However, from there it's too
> strange. Is the SORT actually re-arranging the ARRAY? And why would it not
> allow more than one sort action on the same array?
> 
> Thanks,
> Beverly
>

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to