I am trying to create a general function to sort an arbitrary array and emit the results in a list separated by carriage returns.
I got this far on a simple example ...
X
A1: Variable Set [ Name:%crlf To: Do Maths:Off Append:Off ]
A2: Variable Set [ Name:%array To:a c b dd fff eeee Do Maths:Off Append:Off ]
A3: Variable Split [ Name:%array Splitter: Delete Base:Off ]
A4: Array Process [ Variable:%array Type:Sort Alpha ]
A5: Variable Set [ Name:%array To:%array() Do Maths:Off Append:Off ]
A6: Variable Search Replace [ Variable:%array Search:, Ignore Case:On Multi-Line:Off One Match Only:Off Store Matches In: Replace Matches:On Replace With:%crlf ]
A7: Popup [ Title: Text:%array Background Image: Layout Popup Timeout (Seconds):5 Show Over Keyguard:On ]
A6: does not do the substitutaion. How can I conver the commas to carriage returns. (%crlf is a carriage return.)
Solved. The keyboard app was entering a "comma space" as the compare string. Deleting the space made it work correctly.
... Thom
I got this far on a simple example ...
X
A1: Variable Set [ Name:%crlf To: Do Maths:Off Append:Off ]
A2: Variable Set [ Name:%array To:a c b dd fff eeee Do Maths:Off Append:Off ]
A3: Variable Split [ Name:%array Splitter: Delete Base:Off ]
A4: Array Process [ Variable:%array Type:Sort Alpha ]
A5: Variable Set [ Name:%array To:%array() Do Maths:Off Append:Off ]
A6: Variable Search Replace [ Variable:%array Search:, Ignore Case:On Multi-Line:Off One Match Only:Off Store Matches In: Replace Matches:On Replace With:%crlf ]
A7: Popup [ Title: Text:%array Background Image: Layout Popup Timeout (Seconds):5 Show Over Keyguard:On ]
A6: does not do the substitutaion. How can I conver the commas to carriage returns. (%crlf is a carriage return.)
Solved. The keyboard app was entering a "comma space" as the compare string. Deleting the space made it work correctly.
... Thom
Last edited: