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

Re: Line Numbers, in a .csv file

Expand Messages
  • abetsent
    Sorry, an error: Cbange this ^!CopyFile melo d 0-origem ^$GetClipboard$ c: a_provis2 ^$GetClipboard$ to this ^!CopyFile c: 0-origem ^$GetClipboard$
    Message 1 of 2 , Jul 19, 2007
    • 0 Attachment
      Sorry, an error:

      Cbange this
      ^!CopyFile \\melo\d\0-origem\^$GetClipboard$ c:\a_provis2
      \^$GetClipboard$


      to this

      ^!CopyFile c:\0-origem\^$GetClipboard$ c:\a_provis2
      \^$GetClipboard$

      Sorry.



      --- In ntb-clips@yahoogroups.com, "abetsent" <backup2abet@...> wrote:
      >
      > Friends,
      >
      > Please see this log output for a better debug (use WordWrap off):
      >
      > Clip: "sr-fazer-geral-tips"; Line: 66;^!If 10=17 fimvv;
      > Clip: "sr-fazer-geral-tips"; Line: 67;^!Open
      > c:\a_provis\arquivos.txt;
      > Clip: "sr-fazer-geral-tips"; Line: 68;^!Set %linhaf%=ego-tips.txt;
      > Clip: "sr-fazer-geral-tips"; Line: 69;^!Close
      > c:\a_provis\arquivos.txt,discard;
      > Clip: "sr-fazer-geral-tips"; Line: 71;^!InsertFile \\melo\f\0-
      > novossites\mbaopen\listas\ego-tips.txt;
      > Clip: "sr-fazer-geral-tips"; Line: 73;^!StatusShow sr-fazer-geral-
      > tips [10]: INCLUINDO ego-tips.txt;
      > Clip: "sr-fazer-geral-tips"; Line: 74;^!Delay 10;
      > Clip: "sr-fazer-geral-tips"; Line: 76;^!Goto voltavv;
      > Clip: "sr-fazer-geral-tips"; Line: 64;^!Inc %contlist%;
      > Clip: "sr-fazer-geral-tips"; Line: 66;^!If 11=17 fimvv;
      > Clip: "sr-fazer-geral-tips"; Line: 67;^!Open
      > c:\a_provis\arquivos.txt;
      > Clip: "sr-fazer-geral-tips"; Line: 68;^!Set %linhaf%=cio-tips.txt;
      >
      > As you see will be better, and will be possible to see in Excel.
      And
      > I plan, in the future, to write a kind of reverse flow-chart (this
      > is a very good idea for my friends more experienced with ntp).
      >
      > I created a small Clip to do that, using the standard xxx.txt
      output
      > from SetDebug xxx.txt. As a matter of fact, I suggest to change
      the
      > current code output format of the SetDebug xxx.txt to this .csv
      > format.
      >
      > 1. In any desired point of your code, put ^!SetDebug c:\0-
      > origem\debug.txt
      > 2. Run your Clip to be debugged
      > 3. Run my Clip
      > 4. The resulting list is in c:\a_provis2\debugcsv.csv.
      >
      > Naturally, this Clip is very poor, because I don't have to much
      > experience with ntp and also regex. Perhaps some friends change to
      a
      > better code.
      >
      > my Clip =====================================
      >
      > ^!clearVariables
      > ^!DeleteFile c:\a_provis2\debugcsv.csv
      >
      > ^!Set %direto%=^$GetDosOutput(dir /b c:\0-origem\debug.txt)$
      > ^!Info Select the desired log with Ctrl+C:^P^%direto%
      >
      > ^!DeleteFile c:\a_provis2\^$GetClipboard$
      >
      > ^!CopyFile \\melo\d\0-origem\^$GetClipboard$ c:\a_provis2
      > \^$GetClipboard$
      >
      > ^!Open c:\a_provis2\^$GetClipboard$
      > ^!SetWordWrap off
      >
      > ^!Replace ^p^p >> ^p tiwsa
      >
      > ^!Jump TEXT_END
      > ^!Keyboard #9999#
      >
      > ^!Jump TEXT_START
      >
      > :voltar
      >
      > ^!Find Clip: tis
      > ^!Set %linha%=^$GetLine$
      > ^!If ^%linha%=9999 fim
      >
      > ^!Find Line: tis
      > ^!Replace ^P >> ; tis
      > ^!Set %linha%=^$GetLine$
      > ^!DeleteLine
      > ^!AppendToFile c:\a_provis2\debugcsv.csv ^%linha%;^%NL%
      >
      > ^!Goto voltar
      >
      > :fim
      > ^!Open c:\a_provis2\debugcsv.csv
      > ^!Replace "Clip: " >> "" tiwsa
      > ^!Replace " Line: " >> "" tiwsa
      >
      > end of Clip ==================================
      >
      > Cheers!
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.