Paul Gabel wrote:
Hello:

Is it possible to sort characters in a field "by chars," not by item or line? That is, turn a field containing "cba" into "abc" using the sort (container) command. The docs don't make it seem possible.

Not directly, but using Craig's suggestion, you can do something like this:

function charSort pWord
   repeat for each char c in pWord
      put c & cr after temp
   end repeat
   sort lines of temp
   replace cr with empty in temp
   return temp
end charSort

It's fast.

--
Jacqueline Landman Gay         |     [email protected]
HyperActive Software           |     http://www.hyperactivesw.com
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to