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

20469Re: modifying format of stats tool output & concatenating stats from many files

Expand Messages
  • Sheri
    Mar 1 4:59 AM
    • 0 Attachment
      --- In ntb-clips@yahoogroups.com, "diodeom" <diomir@...> wrote:

      > While on this topic: your handy "List Variable Names" clip could
      > maybe include a provision to account for multiple variables
      > declared in a single line, e.g. ^!Set %Var1%=one; %Var2%=two;
      > %Var3%=three.)

      Thanks, I didn't realize you could use a space in front of additional variable names.

      Here's a revision (there are a couple of long lines):

      ;2007-01-14 created by Sheri Pierce
      ;2010-03-01 Revision by Sheri Pierce
      ;revision tested with NoteTab 6.2 (PCRE 8.01)
      ;use to help create clearvariable statements for the clip being edited
      ^!If ^$GetSelSize$>0 Next Else Skip
      ^!Continue Some text is highlighted. Only variables set within the selection will be considered.
      ^!Set %varnames%="^$GetDocListAll("(?i)(^\^\!Set(Array|Code)?\x20|;\x20?)\K%[\d\pL_]+?%(?=\=)";"^!ClearVariable $0\r\n")$"
      ^!IfEmpty ^%varnames% Next Else Skip_2
      ^!Info No variables found
      ^!Goto Clear
      ^!Set %varnames%="^$StrSort(^%varnames%;No;Yes;Yes)$"
      ^!Info ^%varnames%
      ^!Set %varnames%=""
      :Clear
      ^!ClearVariable %varnames%
      ;end of clip

      Regards,
      Sheri
    • Show all 26 messages in this topic