Finding in reverse

Ben Rubinstein benr_mc at cogapp.com
Wed Jul 5 14:19:55 EDT 2006


On 5/7/06 16:55, Robert Sneidar wrote:
> What would have helped is if the offset function had some way to reverse 
> directions, like an arguement that made offset work end to beginning. 
> Foxpro has 2 functions that are similar, AT() and RAT(). The R is for 
> reverse obviously, and the number is for occurances not characters to 
> skip. Oh well. Maybe we need an roffset() function. :-)

While Bob's specific need was in fact met by setting the item delimiter and 
using "last", I concur with his call for a general method for seeking in 
reverse.  It's not that it's hard to code, but it would be trivial* to 
implement it directly in the engine, and that would be very much faster than 
the transcript version.

There's a proposal in bugzilla for this:
   http://support.runrev.com/bugdatabase/show_bug.cgi?id=584

Please consider tossing it some votes...


*trivial: usual caveats apply

   Ben Rubinstein               |  Email: benr_mc at cogapp.com
   Cognitive Applications Ltd   |  Phone: +44 (0)1273-821600
   http://www.cogapp.com        |  Fax  : +44 (0)1273-728866




More information about the use-livecode mailing list