Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

ntb-clips · The NoteTab Clips List

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 4030 - 4059 of 23891   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#4030 From: "Piotr Bienkowski" <syntax@...>
Date: Mon Jul 3, 2000 8:18 am
Subject: Re: [Clip] Is ^c a token? [2]
syntax@...
Send Email Send Email
 
>
> Hi Piotr,
> >
> >but NT Pro 8.2 replied in a dialog
>
> You mean 4.82 I suppose???

Righto :)
>
> >onsummables" not found.
>
> This is wrong.  It should find it at the beginning of a line correctly
> using regexpr with the new tokens Eric added replacing ^c with \r
> replacing ^c in the expression.

But it did not. I had to use ^[c]consummables, and then it worked
For the uninitiated [c] is one letter in a regexp class by itself :)

Regards

Piotr Bieñkowski

#4031 From: Jody <KJB1611@...>
Date: Mon Jul 3, 2000 8:44 am
Subject: Re: [Clip] Is ^c a token? [2]
KJB1611@...
Send Email Send Email
 
Hi Piotr,

>> replacing ^c with \r replacing ^c in the expression.
>
> But it did not. I had to use ^[c]consummables, and then it
> worked For the uninitiated [c] is one letter in a regexp class
> by itself :)

I do not know why it did not work for you unless there were more
options in your Clip that was causing it not to be found.  All my
examples work here in Pro 4.82 and ^consummables "RI" also worked
for me in Std when I tested.

Happy Clip'n!
Jody

http://www.sureword.com/notetab

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@eGroups.com
mailto:Ntb-Clips-UnSubscribe@eGroups.com
http://www.egroups.com/group/ntb-clips

#4032 From: Julian Cook/Sherab Gyatso <president@...>
Date: Mon Jul 3, 2000 11:15 am
Subject: Dialog boxes
president@...
Send Email Send Email
 
Hello folks!
I have been so thrilled with NoteTab ever since I bought it. My life is
SO much easier now. This is also due to the wonderful help that I have
received
from this list and for that I say thanks.

The problem I am having now is with Dialog boxes.
I have about 1000 text files that I need to reformat to 50 lines.
I can do everything else, jump from document to document and so on
but once the ^!Toolbar Reformat Lines command is encountered, the dialog
box
pops up wanting the parameters.

How do I automate this so that I don't have to keep typing it in 'Left
Margin'
and 'Right Margin' Values all the time?

Thanks so much in advance,
Julian

#4033 From: Jody <KJB1611@...>
Date: Mon Jul 3, 2000 11:39 am
Subject: Re: [Clip] Dialog boxes
KJB1611@...
Send Email Send Email
 
Hi Julian,

> I have been so thrilled with NoteTab ever since I bought it. My
> life is SO much easier now.

Yes!

> How do I automate this so that I don't have to keep typing it
> in 'Left Margin' and 'Right Margin' Values all the time?

Try ^$StrReformat

StrFormat
^$StrFormat("Str";LeftMargin;TextWidth;Justify)$

Returns the "Str" string in specified format. LeftMargin
determines the number of blank spaces to insert between the left
margin and the text; TextWidth defines the maximum width of the
text in each line; Justify is either True or False and determines
if the text is left and right justified.

This command is only available in the commercial and trial
versions of NoteTab.

Here are some examples:

^!Select All
^!InsertText ^$StrFormat("^$GetClipboard$";1;62;False)$

^!Select All
^$StrFormat("^$GetSelection$";5;70;False)$

^!Select All
^$StrFormat("^$GetText$";1;62;No)$

^!Select All
^!Set %Text%=^$GetSelection$
^$StrFormat("^%Text%";1;62;No)$

^!Select All
^!Set %Text%=^$GetText$
^!InsertText ^$StrFormat("^%Text%";5;50;0)$

Happy Clip'n!
Jody

http://www.sureword.com/notetab

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@eGroups.com
mailto:Ntb-Clips-UnSubscribe@eGroups.com
http://www.egroups.com/group/ntb-clips

#4034 From: Claes Gauffin <gauffin@...>
Date: Mon Jul 3, 2000 2:02 pm
Subject: Re: [Clip] Is ^c a token? [2]
gauffin@...
Send Email Send Email
 
Hi Piotr and Jody,

At 03:44 2000-07-03 -0500, you wrote:

>>
>> But it did not. I had to use ^[c]onsummables, and then it
>> worked

>I do not know why it did not work for you unless there were more
>options in your Clip that was causing it not to be found.  All my
>examples work here in Pro 4.82 and ^consummables "RI" also worked

I have missed some steps in this thread, but I wonder whether the following
might have something to do with the problem:

- Start NTP afresh

- Make a search for  ^consumables using the Find command and the regexp
option.

- It should behave just as Piotr described it (does for me at least).

- Then make a one line clip:
    ^!Find "^consumables" TISR

- It should behave just as Jody described it, ie find it nicely.

- Now try the Find command again. Lo and behold! Now it works.

Regards /Claes

#4035 From: "Mitch Cameron" <mcameron@...>
Date: Mon Jul 3, 2000 2:15 pm
Subject: Re: [Clip] Clip cataloging
mcameron@...
Send Email Send Email
 
Thanks, Piotr...>!

I'll take a look.

_______________________________________
Mitch Cameron
Dir. Business Process Engineering
OnePipeline.com
mcameron@...
Office: 801-313-4914
Cell:     801-971-8033
_______________________________________





"Piotr Bienkowski" <syntax@...>
06/30/2000 11:41 PM
Please respond to ntb-clips


         To:     ntb-clips@egroups.com
         cc:
         Subject:        Re: [Clip] Clip cataloging

>Starting notetab with a switch pointing to a different *.ini that
>points to a different set of clip libraries (=toolbox)

>HTH

>Piotr Bienkowski
>a clipper from Poland

>> Hi folks....
>>
>> I'm not even sure how to phrase this question - terminology-wise.....
>>
>> But, is there a way to create 'toolboxes' of various clip libraries,
>> and open one or more of them?



------------------------------------------------------------------------
Lonely? Get Firetalk!
Free, unlimited calls anywhere in the world.
Free voice chat on hundreds of topics.
http://click.egroups.com/1/5477/8/_/2798/_/962430153/
------------------------------------------------------------------------






[Non-text portions of this message have been removed]

#4036 From: Jody <KJB1611@...>
Date: Mon Jul 3, 2000 10:01 pm
Subject: Re: [Clip] Is ^c a token? [2]
KJB1611@...
Send Email Send Email
 
Hi Claes and Piotr,

> - Start NTP afresh
>
> - Make a search for  ^consumables using the Find command and
>   the regexp option.
>
> - It should behave just as Piotr described it (does for me at least).

If you mean ^!Find "^c..." R, then it works first time for me in
Pro on a fresh start.  I asked Eric:

> When doing a search in ^!Find/^!Replace with "R" are tokens
> ^p/^t considered as RegExp?  ^print R finds print at the
> beginning of the line?

Yes, it should ignore the traditional tokens ^p and ^t when in
RegEx mode. I saw the posts on the newsgroup but have not had
time to verify if there is a problem or not...

Happy Clip'n!
Jody

http://www.sureword.com/notetab

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@eGroups.com
mailto:Ntb-Clips-UnSubscribe@eGroups.com
http://www.egroups.com/group/ntb-clips

#4037 From: "Piotr Bienkowski" <syntax@...>
Date: Tue Jul 4, 2000 5:41 am
Subject: Re: [Clip] Is ^c a token? [2]
syntax@...
Send Email Send Email
 
>
> Yes, it should ignore the traditional tokens ^p and ^t when in
> RegEx mode. I saw the posts on the newsgroup but have not had
> time to verify if there is a problem or not...

I think there is a problem but there also is a workaround :)

Piotr
>
> Happy Clip'n!
> Jody
>
> http://www.sureword.com/notetab
>
> Subscribe, UnSubscribe, Options
> mailto:Ntb-Clips-Subscribe@eGroups.com
> mailto:Ntb-Clips-UnSubscribe@eGroups.com
> http://www.egroups.com/group/ntb-clips
>
>
> ----------------------------------------------------------------------
> -- Life's too short to send boring email. Let SuperSig come to the
> rescue. http://click.egroups.com/1/6137/8/_/2798/_/962661687/
> ----------------------------------------------------------------------
> --
>
>
>

#4038 From: Claes Gauffin <gauffin@...>
Date: Tue Jul 4, 2000 6:20 am
Subject: Re: [Clip] Is ^c a token? [2]
gauffin@...
Send Email Send Email
 
Hi Jody,

At 17:01 2000-07-03 -0500, you wrote:

>> - Make a search for  ^consumables using the Find command and
>>   the regexp option.
>>
>> - It should behave just as Piotr described it (does for me at least).
>
>If you mean ^!Find "^c..." R, then it works first time for me in
>Pro on a fresh start.

Nope, didn't make myself clear. Try again:

- Start NTP afresh

- Make a search for  "^consumables"  using the Find command in the
   Search menu with the regexp option (no Clip!)

- It should behave just as Piotr described it, ie interpret ^c as a
   line break, and thus no hit (does for me at least).

- Then make a one line clip:
    ^!Find "^consumables" TISR

- It should behave just as Jody described it, ie find it nicely.

- Now try the Find command in the Search menu again (no Clip).
   Now that works.

Regards /Claes

#4039 From: Jody <KJB1611@...>
Date: Tue Jul 4, 2000 7:17 am
Subject: Re: [Clip] Is ^c a token? [2]
KJB1611@...
Send Email Send Email
 
Hi Claes,

> Nope, didn't make myself clear. Try again:

> - Make a search for  "^consumables"  using the Find command in the
>  Search menu with the regexp option (no Clip!)

OK. I saw Find command and my search menu in it is the white
field that is made with the ^?[] code in the ^!Find command. <g>
I see you must be talking about the Find dialog and if I remember
correctly we saw this is the past with some other things.
Nevertheless, RegExp needs a bit of tweeking, but still better
than before. :)

Thanks!
Jody

Clean-Funnies: click and send...
mailto:c-f@...?subject=Subscribe

#4040 From: "Gavin Jolly" <gavin@...>
Date: Wed Jul 5, 2000 12:17 am
Subject: Newbie trying to parse NT Backup Log
gavin@...
Send Email Send Email
 
I want a script to search through a text file for certain strings and then
copy that line and the two following to a new document. The log file
contains non binary(?) characters so I have to use hte filter. That is why
there are lots of "·" characters.

There are about 6 drives in the log I want to be listed.

I have no idea as to the best way to achieve the results I want. Any
tutorials or text parsing smples will be greatly received. Also total
working solutions will also be very well received.

Thanks

Here is part of the log for backup of the C drive
_________________________________________
Tape Name: "Tape created on 7/4/00"·
·Backup of "C:"
Backup set #1 on tape #1
Backup description: "WHOLE SYSTEM BACKUP - SYSTEM.BAT"·
·Backup Method: Normal
·
·Backup started on 7/4/00 at 22:00:49.·
·Directory C:\·
·Directory C:\clients·
·Directory C:\clients\srvtools·
..... [Lines deleted here]
·Directory C:\temp\HP004·
·Directory C:\temp\HP004\creg·
·Directory C:\temp\HP004\pix·
·Backup completed on 7/4/00 at 22:01:17.·
·Backed up 450 files in 55 directories.·
·Processed 25,109,379 bytes in  28 seconds.·
_____________________________________________

Part of the log for the Verify of C Drive
______________________________________________
Verify of "C:"
Backup set #1 on tape #1
Backup description: "WHOLE SYSTEM BACKUP - SYSTEM.BAT"·
·Verify started on 7/5/00 at 2:13:52.·
·Directory C:\·
·Directory C:\clients·
·Directory C:\clients\srvtools·
..... [Lines deleted here]
·Directory C:\temp\HP004\creg·
·Directory C:\temp\HP004\pix·
·Verify completed on 7/5/00 at 2:14:16.·
·Verified 450 files in 55 directories.·
·0 files were different.·
·Processed 25,109,379 bytes in  24 seconds.·
_____________________________________________

In the new Document I would like the following to be displayed.
______________________________________________
·Backup started on 7/4/00 at 22:00:49.·
·Directory C:\·
·Backup completed on 7/4/00 at 22:01:17.·
·Backed up 450 files in 55 directories.·
·Processed 25,109,379 bytes in  28 seconds.·

[Other drives will be displayed in here]

·Verify started on 7/5/00 at 2:13:52.·
·Directory C:\·
·Verify completed on 7/5/00 at 2:14:16.·
·Verified 450 files in 55 directories.·
·0 files were different.·
·Processed 25,109,379 bytes in  24 seconds.·
_______________________________________________

Gavin Jolly
Project Engineer/Webmaster
Ian Smith and Partners     Ph: 0064 4 566 8004
P.O. Box 30535             Fax:0064 4 566 8037
Lower Hutt                 EMail:gavin@...
New Zealand                http://www.isp.co.nz/staff/gavin.html

Please visit our Web Site: http://www.isp.co.nz

IMPORTANT: The information contained in this Email message may be legally
privileged and confidential.  The information is intended only for the
recipient named in the Email message.  If the reader of this Email message
is not the intended recipient, any use, copying or distribution of this
Email message is prohibited.  If you have received this Email message in
error, please notify me immediately (call me on 0800 ISP LINE).  Thank you.

#4041 From: "Grant" <emerge@...>
Date: Thu Jul 6, 2000 1:40 am
Subject: RE: [Clip] Newbie trying to parse NT Backup Log
emerge@...
Send Email Send Email
 
> -----Original Message-----
> From: Gavin Jolly [mailto:gavin@...]
> Sent: Wednesday, 5 July 2000 12:17 p.m.
> To: Ntb-Clips (E-mail)
> Subject: [Clip] Newbie trying to parse NT Backup Log
>
>
> I want a script to search through a text file for certain strings and then
> copy that line and the two following to a new document. The log file
> contains non binary(?) characters so I have to use hte filter. That is why
> there are lots of "·" characters.
>
> There are about 6 drives in the log I want to be listed.
>
> I have no idea as to the best way to achieve the results I want. Any
> tutorials or text parsing smples will be greatly received. Also total
> working solutions will also be very well received.
>

This is a pretty simple approach which sets up the pasteboard, finds a chunk
of text, selects the wholeline, then copys. This will paste the line into
the pasteboard document. It then finds the next chunk of text etc.
It loops untill an error, ie; can't find a new "Backup started on"
The logfile must be the focused document in notetab.
Hope this helps.

H=backUpLog
^!Set %DocIndex%=^$GetDocIndex$
^!SetNameFormat .txt
^!TOOLBAR New Document
^!Set %txtIndex%=^$GetDocIndex$
^!TOOLBAR Paste Board
^!SetPasteboardDivider ^P
^!SetDocIndex ^%DocIndex%
^!Jump Doc_Start
:loop
^!Find "Backup started on" S
^!IfError loopEnd
^!Select line
^!Toolbar "Copy"
^!Jump SELECT_END
^!Find "Directory" S
^!Select line
^!Toolbar "Copy"
^!Jump SELECT_END
^!Find "Backup completed" S
^!Select line
^!Toolbar "Copy"
^!Jump SELECT_END
^!Goto loop
:loopEnd
^!SetDocIndex ^%txtIndex%
;******end of clip********

ps Love  The strawbale house

#4042 From: "Gavin Jolly" <gavin@...>
Date: Thu Jul 6, 2000 4:21 am
Subject: RE: [Clip] Newbie trying to parse NT Backup Log
gavin@...
Send Email Send Email
 
Thanks for your clip. Excellent.

I have altered it slightly to select what I want. Eventually I found out
that "^!Select 2" will select the current and the following line.

Here is my first full clip I use on a daily basis. It was basically written
by someone else but I am starting to understand now.

^!Set %DocIndex%=^$GetDocIndex$
^!SetNameFormat .txt
^!TOOLBAR New Document
^!Set %txtIndex%=^$GetDocIndex$
^!TOOLBAR Paste Board
^!SetPasteboardDivider ^P^P
^!SetDocIndex ^%DocIndex%
^!Jump Doc_Start
:loop
^!Find "Backup started on" S
^!IfError loopEnd
^!Select 2
^!Toolbar "Copy"
^!Jump SELECT_END
;^!Find "Directory" S
;^!Select line
;^!Toolbar "Copy"
;^!Jump SELECT_END
^!Find "Backup completed" S
^!Select 3
^!Toolbar "Copy"
^!Jump SELECT_END
^!Goto loop
:loopEnd

:loop1
^!Find "Verify started on" S
^!IfError loop1End
^!Select 2
^!Toolbar "Copy"
^!Jump SELECT_END
;^!Find "Directory" S
;^!Select line
;^!Toolbar "Copy"
;^!Jump SELECT_END
^!Find "Verify completed" S
^!Select 4
^!Toolbar "Copy"
^!Jump SELECT_END
^!Goto loop1
:loop1End
^!SetDocIndex ^%txtIndex%
;******end of clip********


Gavin Jolly
gavin@...

#4043 From: jhunsberger@...
Date: Fri Jul 7, 2000 11:21 am
Subject: Checkbox results - How can I remove the delimiters?
jhunsberger@...
Send Email Send Email
 
Greetings!  I am a new user of NoteTab Light.

In a clip script, I use a checkbox prompt (T=A) to return any of the
options that a user checks (of course :-)...

For my example, a possible string returned is:

   "SOLO";"DUET";"TRIO";"QUARTET"

I need to then insert the text in the document somewhat as follows:

STYLE:  SOLO DUET TRIO QUARTET

What is the easiest way to remove the ";" (three characters) from the
original string?  I have tried the $StrReplace()$ function, but
cannot find a way to set up the search for string as '";"'...

For some reason  ^!Set %QSQ%=^$DecToChar(34)$^%SC%^$DecToChar(34)$
followed by:
^!Set %MYLINE%=^$StrReplace("^%QSQ%";" ";"^VAL%;False;False)$

did not work... (Caution, I am typing this from recollection, there
may be a few inaccuracies, but I just want to show the general idea I
have tried...)  Is there a way that works?

Missing the forest for the trees.
Joel Hunsberger
jhunsberger@...

#4044 From: "Larry Hamilton" <larry_h@...>
Date: Fri Jul 7, 2000 4:34 pm
Subject: Updated Juno Clip Library
larry_h@...
Send Email Send Email
 
Hi Clippers,

I updated my Juno clip to copy email from Juno to either text or
outline, and some clips to clean up the outline headers and topics.
Plus a couple more. I will have it posted on my site soon.

I tried to make one that would clean up the file that Juno makes when
exporting it message folders, but it adds a lot of junk that makes
for corrupt data when opening as a text file. My solution is a little
more work than a clip might have been to do the same, but it avoid a
lot of headaches. Also a text/outline file is about 1/3 the size of a
message folder! I freed up over 25 MB on my hard drive!

Now I use these clips as I get mail to keep things organized as I go.

Here is the link for a direct download:
http://notlimah.tripod.com/files/juno_4.zip

Link to my site below sig line.


Larry Hamilton, Jr.     lmhamilton@...
Hamilton National Genealogical Society, Inc.
http://www.HamiltonGenSociety.org/
My Web Site:     http://notlimaH.tripod.com

#4045 From: Jody <KJB1611@...>
Date: Fri Jul 7, 2000 8:07 pm
Subject: Re: [Clip] Checkbox results - How can I remove the delimiters?
KJB1611@...
Send Email Send Email
 
Hi Joel,

> For my example, a possible string returned is:
>
>  "SOLO";"DUET";"TRIO";"QUARTET"
>
> I need to then insert the text in the document somewhat as follows:
>
> STYLE:  SOLO DUET TRIO QUARTET
>
> What is the easiest way to remove the ";" (three characters)
> from the original string?

> Missing the forest for the trees.

You said it not me. <bg>  Try this:

H=List Delimiter
^!SetListDelimiter ^%Space%
^!Info ^?{(T=A) to return any of the=SOLO|DUET|TRIO|QUARTET}

The preset variable should be used when a space is required at
the ends of lines because of a NoteTab Option to trim white
spaces.

"Trim White Spaces: Spaces at the end of paragraphs are removed
when the document is saved."

A paragraph in NoteTab is all text on a line up to a hard line
break (CR/LF).

So:

A paragraph(CRLF)

is a paragraph. :)

Happy Clip'n!
Jody

http://www.sureword.com/notetab

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@eGroups.com
mailto:Ntb-Clips-UnSubscribe@eGroups.com
http://www.egroups.com/group/ntb-clips

#4046 From: j@...
Date: Fri Jul 7, 2000 8:45 pm
Subject: Search and Replace Clip
j@...
Send Email Send Email
 
I need some help with writing a search/replace clip that will do the
following:

Wherever there is "INPUT", find the next ">" and replace with " />".

I am relatively new to clip programming, but not to Notetab. I
appreciate the help.

James

#4047 From: Larry Thomas <larryt@...>
Date: Fri Jul 7, 2000 9:32 pm
Subject: Re: [Clip] Search and Replace Clip
larryt@...
Send Email Send Email
 
Hi James,

At 08:45 PM 07/07/2000 -0000, you wrote:
>I need some help with writing a search/replace clip that will do the
>following:
>
>Wherever there is "INPUT", find the next ">" and replace with " />".
>
>I am relatively new to clip programming, but not to Notetab. I
>appreciate the help.
>
>James

You can try:

H="Replacing > with />"
:Loop
^!Find "INPUT" AS
^!IfError Exit Else Next
^!Replace ">" >> "/>" TAS
^!IfError Exit Else Loop

Regards,

Larry
larryt@...

#4048 From: Eb Guenther <ebg@...>
Date: Fri Jul 7, 2000 11:44 pm
Subject: Re: [Clip] Search and Replace Clip
ebg@...
Send Email Send Email
 
Hi j@...,

>I need some help with writing a search/replace clip that will do the
>following:
>
>Wherever there is "INPUT", find the next ">" and replace with " />".
>
>I am relatively new to clip programming, but not to Notetab. I
>appreciate the help.

If you are converting to XHTML, try the menu option:

          Modify-->Change HTML Tags-->To XHTML

It will correct those tags that have no closing tag, and
insert the "/" before the ">" if missing.

Cheers,

Eb

#4049 From: " Jr. Frank Nichols" <thefrank@...>
Date: Wed Jul 12, 2000 4:13 pm
Subject: autoincrement an interger
thefrank@...
Send Email Send Email
 
Has to be simple, but this is one clip I just don't seem to
comprehend...

I have a number, say 700001, I want to select this and have the clip
paste 700002 below (next row), then 700003 in next row, and so on.

thanks in advance.

tf

#4050 From: Jody <KJB1611@...>
Date: Wed Jul 12, 2000 4:36 pm
Subject: Re: [Clip] autoincrement an interger
KJB1611@...
Send Email Send Email
 
Hi Jr.,

>Has to be simple, but this is one clip I just don't seem to
>comprehend...
>
>I have a number, say 700001, I want to select this and have the clip
>paste 700002 below (next row), then 700003 in next row, and so on.

Try this monster out. ;)

<---     Copy below this line     --->
H=Increment Once
; 07-12-2000, jody
; Set your cursor inside the number and click.

^!Set %nnn%=^$GetBlock$
^!Inc %nnn%
^!Jump Line_End
^!InsertText ^p^%nnn%
; ^!Jump +1

<---  Copy above this line, right --->
<---   click over a Library, and  --->
<---  choose "Add from Clipboard" --->

Either my nnnLines or DirStuff or NoteBlock lets you renumber
lines, and a number of other other things dealing with line
numbering, but I don't have the time to look for the correct
one now.

Happy Clip'n!
Jody

http://www.sureword.com/notetab

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@eGroups.com
mailto:Ntb-Clips-UnSubscribe@eGroups.com
http://www.egroups.com/group/ntb-clips

#4051 From: " Jr. Frank Nichols" <thefrank@...>
Date: Wed Jul 12, 2000 9:34 pm
Subject: Re: autoincrement an interger
thefrank@...
Send Email Send Email
 
--- In ntb-clips@egroups.com, Jody <KJB1611@a...> wrote:
> Hi Jr.,
>
> >Has to be simple, but this is one clip I just don't seem to
> >comprehend...
> >
> >I have a number, say 700001, I want to select this and have the
clip
> >paste 700002 below (next row), then 700003 in next row, and so on.
>
> Try this monster out. ;)
>
> <---     Copy below this line     --->
> H=Increment Once
> ; 07-12-2000, jody
> ; Set your cursor inside the number and click.
>
> ^!Set %nnn%=^$GetBlock$
> ^!Inc %nnn%
> ^!Jump Line_End
> ^!InsertText ^p^%nnn%
> ; ^!Jump +1
>
> <---  Copy above this line, right --->
> <---   click over a Library, and  --->
> <---  choose "Add from Clipboard" --->
>
> Either my nnnLines or DirStuff or NoteBlock lets you renumber
> lines, and a number of other other things dealing with line
> numbering, but I don't have the time to look for the correct
> one now.
>
> Happy Clip'n!
> Jody
>
> http://www.sureword.com/notetab
>
> Subscribe, UnSubscribe, Options
> mailto:Ntb-Clips-Subscribe@e...
> mailto:Ntb-Clips-UnSubscribe@e...
> http://www.egroups.com/group/ntb-clips


thank you Jody

yes, it does seem obvious after all.

I modified your thought slightly:

^!Set %nnn%=^$GetBlock$
^!Inc %nnn%
^!Jump Line_Start
^!Keyboard DOWN
^!InsertText ^p^%nnn%
^!Jump Line_Start

which locates the new number as a column, after providing that there
is a space or tab after the last digit, and a space in the following
row to delimit the block. Then (of course) I wanted the whole show to
loop...simple enough...

:Start
^!Set %nnn%=^$GetBlock$
^!Inc %nnn%
^!Jump Line_Start
^!Keyboard DOWN
^!InsertText ^p^%nnn%
^!Jump Line_Start
^!GoTo Start

of course, it will go on for maybe ten thousand lines, until I hit
CTRL+ALT and then save the document while pressing those keys. Then
(of course) going back to delete miles of iterations which occurred
after running out of real content....

It was fun though ;)

And I just bet there is a way to tell the loop to stop itself at just
the right time...hmmmm....

(btw...congrats on your offspring's musical talent...)

tnx again,

tf

#4052 From: Larry Thomas <larryt@...>
Date: Thu Jul 13, 2000 1:23 am
Subject: Re: [Clip] Re: autoincrement an interger
larryt@...
Send Email Send Email
 
Hi Frank,

At 09:34 PM 07/12/2000 -0000, you wrote:

>thank you Jody
>
>yes, it does seem obvious after all.
>
>I modified your thought slightly:
>
>^!Set %nnn%=^$GetBlock$
>^!Inc %nnn%
>^!Jump Line_Start
>^!Keyboard DOWN
>^!InsertText ^p^%nnn%
>^!Jump Line_Start
>
>which locates the new number as a column, after providing that there
>is a space or tab after the last digit, and a space in the following
>row to delimit the block. Then (of course) I wanted the whole show to
>loop...simple enough...
>
>:Start
>^!Set %nnn%=^$GetBlock$
>^!Inc %nnn%
>^!Jump Line_Start
>^!Keyboard DOWN
>^!InsertText ^p^%nnn%
>^!Jump Line_Start
>^!GoTo Start
>
>of course, it will go on for maybe ten thousand lines, until I hit
>CTRL+ALT and then save the document while pressing those keys. Then
>(of course) going back to delete miles of iterations which occurred
>after running out of real content....
>
>It was fun though ;)
>
>And I just bet there is a way to tell the loop to stop itself at just
>the right time...hmmmm....
>
>(btw...congrats on your offspring's musical talent...)

Try this change:

^!Set %Counter%=^?[How many lines?]
:Start
^!Set %nnn%=^$GetBlock$
^!Inc %nnn%
^!Jump Line_Start
^!Keyboard DOWN
^!InsertText ^p^%nnn%
^!Jump Line_Start
^!Dec %Counter%
^!If ^%Counter% > 0 Start Else Exit

Regards,

Larry
larryt@...

#4053 From: Jody <KJB1611@...>
Date: Thu Jul 13, 2000 2:11 am
Subject: Re: [Clip] Re: autoincrement an interger
KJB1611@...
Send Email Send Email
 
Hi Larry & Frank,

>> thank you Jody

Your welcome.  I didn't seem to get your post Larry replied to.

>>I modified your thought slightly:

>> of course, it will go on for maybe ten thousand lines, until I
>> hit CTRL+ALT and then save the document while pressing those
>> keys. Then (of course) going back to delete miles of
>> iterations which occurred after running out of real
>> content....

Wherever those Clips are I mentioned there is one or more that do
what you want and one of them is similar to Larry's.  I think
there is one you put in the number you want it to start at and
then tell it when to end also.  I try to stay away from keyboard
commands when possible. Jump +1 does the same thing as Keyboard
Down, except Jump +1 automatically puts you at column one.

>> (btw...congrats on your offspring's musical talent...)

Huh? :)

Happy Clip'n!
Jody

http://www.sureword.com/notetab

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@eGroups.com
mailto:Ntb-Clips-UnSubscribe@eGroups.com
http://www.egroups.com/group/ntb-clips

#4054 From: Larry Thomas <larryt@...>
Date: Thu Jul 13, 2000 5:18 am
Subject: Re: [Clip] Re: autoincrement an interger
larryt@...
Send Email Send Email
 
Hi Jody and Frank,

At 09:11 PM 07/12/2000 -0500, you wrote:
>Wherever those Clips are I mentioned there is one or more that do
>what you want and one of them is similar to Larry's.  I think
>there is one you put in the number you want it to start at and
>then tell it when to end also.  I try to stay away from keyboard
>commands when possible. Jump +1 does the same thing as Keyboard
>Down, except Jump +1 automatically puts you at column one.

Here is another clip to do the job.  This clip does use the ^!Keyboard
command but I could not think of a way to get this particular idea to work
otherwise.  This clip does not loop but does the whole job in one run from
beginning to end.  Ir is a little faster than the other one when doing
large numbers of lines.  It assumes that the first word on the line is a
number.  Just place your cursor anywhere on the line and run it.  I used
^$Getword$ instead of ^$Getblock$ to avoid getting periods if the number
has a period at its right end.  If you want the numbers to have periods,
delete the ^!Replace line.

---------< start clip >---------
H="Number Lines"
;Larry Thomas <larryt@...>
;07/13/2000, 12:01:55 AM
^!Jump Line_Start
^!Set %Num%=^$Getword$
^!Inc %Num%
^!Jump Line_End
^!InsertText ^p
^!SetClipboard ^$StrFill(" ^%nl%";^?[How many lines?])$
^!PasteSelect
^!Keyboard Alt+M L N #^%Num%# Enter
^!Replace ". " >> " " ASH
^!Jump Select_End
---------< end clip >-----------

Regards,

Larry
larryt@...

#4055 From: Jody <KJB1611@...>
Date: Thu Jul 13, 2000 6:16 am
Subject: Re: [Clip] Re: autoincrement an interger
KJB1611@...
Send Email Send Email
 
Hi Larry,

> Here is another clip to do the job.

Yet one more, Like I really have the time for this - hahaha.
I looked in my nnnLines and NoteBlock.  Between the two of
them there are about a dozen different Clips dealing with
numbering lines.  There is one that will renumber them in
the case of lines being deleted, another to strip all the
numbers with an option to specify what follows them like a
period space or colon space. I noticed I had some like your
last one too Larry. :)  I just added this one to nnnLines
and uploaded. It is really a pretty custom type Clip though
I think.  Personally I think it would be better not to get
the exiting line number and that way if it was a new doc you
do not get that first line skipped.

http://www.sureword.com/notetab/zip/noteblock.zip
http://www.sureword.com/notetab/zip/nnnlines.zip

<---     Copy below this line     --->
H=Increment nnn
; Last Updated 07/13/2000, Jody@...
; http://www.sureword.com/notetab

^!Jump Line_Start
; long line till ^!Set
^!Set %nnn%=^?{Start numbering at one more than what=^$GetBlock$};
%Endnnn%=^?{Stop numbering at=^$GetLineCount$}; %After%=^?{Add what after number
(. , : , - ...=_. |}
^!Set %Stop%=^$Calc(^%Endnnn%-^%nnn%)$; %Count%=0

:Loop
^!Inc %nnn%
^!Inc %Count%
^!Jump Line_End
^!InsertText ^p^%nnn%^%After%
^!Jump +1
^!If ^%Count% = ^%Stop% Skip
^!Goto Loop

<---  Copy above this line, right --->
<---   click over a Library, and  --->
<---  choose "Add from Clipboard" --->

Well, back to the boring task of making floppy disks. ;)

Happy Clip'n!
Jody

http://www.sureword.com/notetab

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@eGroups.com
mailto:Ntb-Clips-UnSubscribe@eGroups.com
http://www.egroups.com/group/ntb-clips

#4056 From: "Michael Gerholdt" <gerholdt@...>
Date: Fri Jul 14, 2000 2:56 am
Subject: add column
gerholdt@...
Send Email Send Email
 
Hi, folks,

I have a fixed text file with no delimiters.
1271 rows deep. characters 56-67 are money amounts with decimal and two
places to right of decimal.

I'd like to add the entire amount.

Using Modify | Block | Sum I can specify this, but I get an 'unable to
calculate expression' response.

At any rate, I'd rather perform this task from the clip that took the text
from a CSV and stuck it into this file. Need the total for the 'control'
footer line at bottom.

Is this do-able?

I've noticed before that NoteTab seems to have a limit to how many rows it
can calculate at a time - have had to break up into chunks and then add the
sums together. Is this the norm?

thanks,

Regards,
Michael Gerholdt
SUNY College at Fredonia

#4057 From: RS <ptools@...>
Date: Fri Jul 14, 2000 8:40 am
Subject: Re: [Clip] add column
ptools@...
Send Email Send Email
 
Hi Michael,

At 10:56 PM 07/13/00 -0400, you wrote:

>I have a fixed text file with no delimiters.
>1271 rows deep. characters 56-67 are money amounts with decimal and two
>places to right of decimal.
>
>I'd like to add the entire amount.

There is a DoToLines component available from my page (
http://home.att.net/~ptools/main/index.htm ). Using it is quite easy to do
what you had in mind.

I acknowledge that the component might be confusing for some users, and I
intend to make it more direct whenever I have the time. Particularly, the
":Finish" label is misleading: it should be named ":Continue". There are
examples on the component's use,  however, on my page. And the following is
another one. Look at it, compare it with the bare component, and you'll
know how to use it in the future.

Of course, ClipWriter is a big help, too. I wrote and tested this in 10
minutes:

;======== Start ========
H="Add Fields"
; RS - Last edited: 07/14/00
; Edited with ClipWriter


;RS 1998 - DoToLines
; Download other components for NoteTab from:
; http://home.att.net/~ptools/main/components.htm


^!ClearVariables
^!Set %line%=1
:Loop
^!SetCursor ^%line%:1

;===============================================
;
;INSERT BELOW THE NEXT DOTED LINE YOUR CODE
; FOR WHATEVER HAS TO BE DONE TO EACH LINE:
; (Use the Finish label to conditionally avoid a line)
;
;==================================================
;@ ===== BEGIN CODE =================================
;The value to add is in the 12 characters starting at
;position 56:
^!Set %x%=^$StrCopy("^$GetLine(^%line%)$";56;12)$
^!Append %s%=^%x%^%NL%
^!Set %sum%=^$Calc(^%sum% + ^%x%;4)$
;@ ===== END CODE ===================================
;==================================================
;This is the rest of the routine -
;DO NOT WRITE BELOW.
;===============================================
:Finish
^!Inc %line%
^!If ^%line% <= ^$GetLineCount$ Loop
^!StatusClose
;***********************
;@ FINALIZATION Code below here.
;Display the values gathered and the total:
^!Info ^%s% ^p sum = ^%sum%
;========= End =========





I tested with the following sample text (it would have been nice if you had
given us a sample -- writing it took me almost as long as writing the clip):

*************************
qwerty qwerty qwerty qwerty qwerty qwerty qwerty qwert 1234567.2345 more
qwerty END OF LINE
qwerty qwerty qwerty qwerty qwerty qwerty qwerty qwert    1234.95   more
qwerty END OF LINE
qwerty qwerty qwerty qwerty qwerty qwerty qwerty qwert     345.76   more
qwerty END OF LINE
qwerty qwerty qwerty qwerty qwerty qwerty qwerty qwert      11.23   more
qwerty END OF LINE
qwerty qwerty qwerty qwerty qwerty qwerty qwerty qwert      34.2382 more
qwerty END OF LINE
*************************

The displayed  result is:

1234567.2345
    1234.95
     345.76
      11.23
      34.2382

  sum = 1236193.4127




Regards,

RS

======================================================

ClipWriter 2.12   --  Millennium Edition

       http://home.att.net/~ptools/ClipWriter/cw.htm


The easiest way to program NoteTab, and
...a powerful tool for quick Clip solutions!



======================================================







======================================================

#4058 From: Alan Williams <alwilli@...>
Date: Fri Jul 14, 2000 11:10 am
Subject: SetArray/Getfiles failure: NT 4.82
alwilli@...
Send Email Send Email
 
Hi All,

Has anyone come across a failure of a SetArray variable not taking the
contents of a ^$Getfiles ???

The strange thing is I use exactly the same syntax (same drive etc)
elswhere in the clip library and it works fine.

The problem child shows, when setdebug is on, that the Array is not
being set.

Here is the clipcode(actually modifed from help from Jody):

---------------------------------
^!Setdebug ON
^!Set %pub%="g:\her\fem\"
^!TOOLBAR Close All
^!SetListDelimiter ^p
^!SetArray %OpenList%=^$GetFiles("^%pub%";*.htm;DATE)$
^!Set %Count%=^%OpenList0%
^!Set %Index%=0
--------------------------------------

Here is the near-identical version from another clip that works
fine(some variables having
been set in previous clip):
--------------------------------------
^!Set %pub%="g:\her\"
^!TOOLBAR Close All
^!SetListDelimiter ^p
^!SetArray %OpenList%=^$GetFiles("^%pub%^%dir%";^%Type%;^%Sort%)$
^!Set %Count%=^%OpenList0%
^!Set %Index%=0
-------------------------------


In the first one, debug shows %Count%= (ie nothing after =) In the
second it shows %Count%=5 (eg, the number of files in the dir)

What could be the result of this strange behaviour.


Best regards,
Alan
mailto:alwilli@...

#4059 From: Larry Thomas <larryt@...>
Date: Fri Jul 14, 2000 1:26 pm
Subject: Re: [Clip] SetArray/Getfiles failure: NT 4.82
larryt@...
Send Email Send Email
 
Hi Allan,

At 01:10 PM 07/14/2000 +0200, you wrote:
>Hi All,
>
>Has anyone come across a failure of a SetArray variable not taking the
>contents of a ^$Getfiles ???
>
>The strange thing is I use exactly the same syntax (same drive etc)
>elswhere in the clip library and it works fine.
>
>The problem child shows, when setdebug is on, that the Array is not
>being set.
>
>Here is the clipcode(actually modifed from help from Jody):
>
>---------------------------------
>^!Setdebug ON
>^!Set %pub%="g:\her\fem\"
>^!TOOLBAR Close All
>^!SetListDelimiter ^p
>^!SetArray %OpenList%=^$GetFiles("^%pub%";*.htm;DATE)$
>^!Set %Count%=^%OpenList0%
>^!Set %Index%=0
>--------------------------------------

Try adding an extra semicolon between *.htm and DATE.

^!SetArray %OpenList%=^$GetFiles("^%pub%";*.htm;;DATE)$

The function could be seeing DATE as an attribute pattern instead of the
sort order.

Regards,

Larry
larryt@...

Messages 4030 - 4059 of 23891   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help