Loading ...
Sorry, an error occurred while loading the content.

Re: [Clip] Sorting HTML tables solved (this time working, hopefully ;)

Expand Messages
  • Michael Gerholdt
    Nice work. You might want to add this to the resort clip: ^!Replace ^$StrFill({ } s*;^%columns%)$ ^%order% HIRAS So that any headers get
    Message 1 of 1 , Sep 29, 2002
    • 0 Attachment
      Nice work.

      You might want to add this to the 'resort' clip:

      ^!Replace "^$StrFill({<th.*</th>}\s*;^%columns%)$" >> "^%order%" HIRAS

      So that any headers get resorted along with the data they describe.

      We need functions like
      ^$GetSelStart$ (or ^$GetSelStartPos$)
      and
      ^$GetSelEnd$

      Using
      ^!Find "something or other"
      ^!Jump Select_Start
      ^!Set %r%=^$GetRow$
      ^!Set %c%=^$GetCol$
      followed by later use:
      ^!SelectTo ^%r%:^%c%

      Is kind of clutzy.

      If we could do
      ^!Set %a% = ^$GetSelStart$
      and later
      ^!SetCursor ^%a%
      or
      ^!SelectTo ^%a%

      Much sweeter!
    Your message has been successfully submitted and would be delivered to recipients shortly.