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 9894 - 9923 of 23888   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#9894 From: "hugo_paulissen <h.paulissen@...>" <h.paulissen@...>
Date: Tue Feb 25, 2003 12:13 am
Subject: Re: [Clip] find line in string
hugo_paulissen
Send Email Send Email
 
Alan, Manuel,

>
> a ^!Find (item in a doc, albeit it's a doc that's not shown on the
monitor video screen) method exists, most of the following is merely
a way using that method.  (a change delimiter option is included too,
just for fun)

That was my first thought too - just make a new doc in which you
search for the desired string. But then I thought it would be nice to
handle it in the string itself - but that requires some more
handling...


>
> Hugo, is it always that there's a ^p at the very end of an (input
data) string? (in the case that the found item happened to occurred
in the very last line at the very end of the input string)
>

I wouldn't know, honestly, I just tested it and found out that there
were some extra lines (I just trimmed those, as you noticed). And
then I only tested twice with the three lines in the order Manuel
provided us with, and once with the find-text on the first line (and
this seemed to work).

Maybe it has to do with the chopping itself - it could be that this
takes place after the newline-character in the clip I sent in...
Didn't have the time to find out.


Thanks,

Hugo

#9895 From: "John <johnfarrow@...>" <johnfarrow@...>
Date: Mon Feb 24, 2003 10:12 pm
Subject: Dialer Operation
johnfarrow
Send Email Send Email
 
I downloaded the 1dbase clp and it has a dialer function.  I cannot
get the dialer to work.  I tried with the editor to change "Dialer"
to the path for the Phone Dialer but still no luck.
    Other than that this is a real neat clip. I am using W2K operating
system.  Can anyone help?

#9896 From: "Alan C." <acumming@...>
Date: Tue Feb 25, 2003 6:33 am
Subject: Re: [Clip] Dialer Operation
acummingsus
Send Email Send Email
 
Hi John,

>I downloaded the 1dbase clp and it has a dialer function.  I cannot
>get the dialer to work.  I tried with the editor to change "Dialer"
>to the path for the Phone Dialer but still no luck.

That's the PIM or pim1 or something like that download at ntb clip repository,
the "other" page

I use Win 2k

"E:\Program Files\Windows NT\dialer.exe"

My OS is on E drive

^!Dialer

above line taken from 1dbase.  I looked, couldn't find anywhere where the author
had created a custom function.  And that command is not listed in current
NoteTab.

I wonder if that is a command that no longer in current NoteTab?

What are you want to do?  To connect ISP for internet for email probably could
achieve it without using this dialer.

--
Alan.

#9897 From: "Alan C." <acumming@...>
Date: Tue Feb 25, 2003 7:55 am
Subject: Re: [Clip] find line in string
acummingsus
Send Email Send Email
 
Hi Manuel, Hugo, All,

Thanks to you too for helping; the idea -- database principle (such clip idea
follows).

>Heyˇˇˇ Fantastic!

In all of this does exists idea for clip powered database too! ˇˇˇ

Jody probably already wrote one.

What you were do is like a key to access a larger item, the larger item being a
delimited item that is inside yet a larger item - a file amongst other delimited
items (line or otherwise delimited). (one item relates to another item relates
to yet another item = relational database principle).

pc notetab editor clip utilities software ~ http://www.notetab.com/
pc fookes ae mbg ezt pics graphic email ~ http://www.fookes.com/
perl namespace scope functions import ~
http://perl.plover.com/FAQs/Namespaces.html
computing kb it pc help knowledge base ~ http://kb.indiana.edu/index.cgi
perl xml project perlxml xml and perl ~ http://www.perlxml.net/index.dkb
alistapart css html xhtml web www ~ http://www.alistapart.com/index.html
css position ~ http://users.rraz.net/mc_on_the_rocks/testpage/pie.html
ftp gorilla cpan ualberta ~ ftp://sunsite.ualberta.ca/pub/Mirror/CPAN/
sax perl perlsax xml ~ http://www.xml.com/pub/a/2001/02/14/perlsax.html
ez ezfind google find easy ~ http://www.google.com/

have a database (just a text) file.  use a wizard (and/or a separate keyword
doc) to search for keyword(s) that exist inside the main database.  key(s) found
near left side of line picks a line or picks however many lines that contain the
criteria.  Broaden or narrow the search by the amount of keywords entered into
search criteria.

Probably this is the best idea yet to befall onto me for that url database clip
that I was going to write (started to write one once, using an ini file but
never finished it) some things are good for keeping in ini, other things are
best left to a line break delimited text file.

But now I'm hooked on Perl.  And new, though not total newbie, to xml.  I near
intermediate skills on Perl; the "Xml and Perl" book I just got is really taking
off with me.

Then there's Perl - MySql  but that's down the road a ways, after I master some
Perl with xml (the flexibility is rather amazing--store info/data in the xml --
transform xml to this, transform xml to that).

--
Alan.

#9898 From: Jody <av1611@...>
Date: Tue Feb 25, 2003 12:13 pm
Subject: Re: [Clip] find line in string
notetabber
Send Email Send Email
 
Hi Alan C., Manuel, Hugo, All,

>Jody probably already wrote one.

I don't really know what you are finding so I cannot tell if I
did.  Does Manuel mean to get all the lines that the string is
found in?  Manuel, your English is 10,000 times better than my
Spanish, but I sometimes have a hard time understanding what you
want.

Anyway, I just wanted to cut in for a bit and let you all know I
may be "out of it" for a day or two.  I leave for Pensacola
(about 20 miles) for a biopsy in my throat in a few minutes.
I'll get back into it all when I feel up to it.  Until then...

Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://groups.yahoo.com/group/ntb-clips

#9899 From: Jody <av1611@...>
Date: Tue Feb 25, 2003 12:27 pm
Subject: Re: [Clip] Dialer Operation
notetabber
Send Email Send Email
 
Hi Guys/Gals,

>> I downloaded the 1dbase clp and it has a dialer function.  I
>> cannot get the dialer to work.  I tried with the editor to
>> change "Dialer" to the path for the Phone Dialer but still no
>> luck.
>
>"E:\Program Files\Windows NT\dialer.exe"
>
>My OS is on E drive
>
>^!Dialer

Never had any such animal.  Perhaps that is just the Clip author's
way of saying to put "your" path in to your dialer.

>above line taken from 1dbase.  I looked, couldn't find anywhere
>where the author had created a custom function.  And that command
>is not listed in current NoteTab.

Custom functions look like functions as in ^$Function$ and they have
^!Result.

Here are my favorite. Eric originally did the coding when I suggested for
about the third time that we needed a ^$GetTextBol$ and ^$GetTextEol$ :)

<---     Copy below this line     --->
H=TextBol
; eMailed on 02-25-2003, Jody@...
; notetab.net, notetab.net/html/cd-info.htm
; Last updated 11/20/2001, Jody@...
; http://www.notetab.net, http://www.notetab.net/order
; Working example of a custom function that gets the text
; from the cursor point to the beginning of line.
; ^!Result is set in the Clip, GetTextBol.
^!Info ^$GetTextBol$


H=TextEol
; eMailed on 02-25-2003, Jody@...
; notetab.net, notetab.net/html/cd-info.htm
; Last updated 11/20/2001, Jody@...
; http://www.notetab.net, http://www.notetab.net/order
; Working example of a custom function that gets the text
; from the cursor point to the end of line. Uses Clip
; TextEol to see the value of the custom function.
^!Info ^$GetTextEol$


H=_GetTextBol
; eMailed on 02-25-2003, Jody@...
; notetab.net, notetab.net/html/cd-info.htm
; Last updated 11/20/2001, Jody@...
; http://www.notetab.net, http://www.notetab.net/order
; Working example of a custom function that gets the text
; from the cursor point to the beginning of line. Uses Clip
; TextBol to see the value of the custom function.
^!Result ^$StrCopy("^$GetLine$";1;^$Calc(^$GetCol$-1)$)$


H=_GetTextEol
; eMailed on 02-25-2003, Jody@...
; notetab.net, notetab.net/html/cd-info.htm
; Last updated 11/20/2001, Jody@...
; http://www.notetab.net, http://www.notetab.net/order
; Working example of a custom function that gets the text
; from the cursor point to the beginning of line. Uses Clip
; TextEol to see the value of the custom function.
^!Result ^$StrCopy("^$GetLine$";^$GetCol$;^$GetLineSize$)$

<---     Copy above this line     --->
<---  Right click over a Library  --->
<---  Choose: Add from Clipboard   --->

>I wonder if that is a command that no longer in current NoteTab?
>
>What are you want to do?  To connect ISP for internet for email
>probably could achieve it without using this dialer.

You know, when you do a custom install or you add programs/utilities
from the Windows CD.  Under the DUN area there is the dialer. It is
useful toy use like for store phone numbers and use them for say
speed dial.  You hook your phone right up to your modem.  I'm sure
there are freeware/shareware dialers out there, but the Windows issue
has a key pad, place to store numbers if I'm not mistaken, and so on.

Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://groups.yahoo.com/group/ntb-clips

#9900 From: "John <johnfarrow@...>" <johnfarrow@...>
Date: Tue Feb 25, 2003 9:00 pm
Subject: Re: [Clip] Dialer Operation
johnfarrow
Send Email Send Email
 
I have the "Dialer" program and I know the path, but when I install
the path for the "dialer" with the clip editor, I get the error
message instead of it dialing the number.

I don't want to use it for dialing ISP's or anything connected to the
internet.  I just want to select an individual from the database and
dial his/her phone number.  I am sure that is what was intended when
the clip was written.   If you could just take a look at the clip in
the editor and see if you could make a suggestion.


> You know, when you do a custom install or you add programs/utilities
> from the Windows CD.  Under the DUN area there is the dialer. It is
> useful toy use like for store phone numbers and use them for say
> speed dial.  You hook your phone right up to your modem.  I'm sure
> there are freeware/shareware dialers out there, but the Windows
issue
> has a key pad, place to store numbers if I'm not mistaken, and so
on.
>
> Happy Clip'n!
> Jody
>
> http://www.notetab.net
>
> Subscribe, UnSubscribe, Options
> mailto:Ntb-Clips-Subscribe@yahoogroups.com
> mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
> http://groups.yahoo.com/group/ntb-clips

#9901 From: "Info" <info@...>
Date: Tue Feb 25, 2003 1:48 pm
Subject: Re: [Clip] Dialer Operation
info@...
Send Email Send Email
 
I can't seem to find this file...Looks interesting..Where can I get it?
Many thanks,
Chris


*********** REPLY SEPARATOR  ***********

On 2/24/2003 at 10:12 PM John <johnfarrow@...> wrote:

>I downloaded the 1dbase clp and it has a dialer function.  I cannot
>get the dialer to work.  I tried with the editor to change "Dialer"
>to the path for the Phone Dialer but still no luck.
>   Other than that this is a real neat clip. I am using W2K operating
>system.  Can anyone help?
>
>
>
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

#9902 From: "John <johnfarrow@...>" <johnfarrow@...>
Date: Tue Feb 25, 2003 10:27 pm
Subject: Re: [Clip] Dialer Operation
johnfarrow
Send Email Send Email
 
Hi Chris,
    The clip  is PIM1 and its located at www.notetab.com.  Look under
LIBRARIES,  then under OTHER.  Wish I could get the "Dialer" part of
it to work.

John




--- In ntb-clips@yahoogroups.com, "Info" <info@l...> wrote:
> I can't seem to find this file...Looks interesting..Where can I get
it?
> Many thanks,
> Chris
>
>
> *********** REPLY SEPARATOR  ***********
>
> On 2/24/2003 at 10:12 PM John <johnfarrow@r...> wrote:
>
> >I downloaded the 1dbase clp and it has a dialer function.  I
cannot
> >get the dialer to work.  I tried with the editor to
change "Dialer"
> >to the path for the Phone Dialer but still no luck.
> >   Other than that this is a real neat clip. I am using W2K
operating
> >system.  Can anyone help?
> >
> >
> >
> >
> >
> >
> >Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/

#9903 From: "John <johnfarrow@...>" <johnfarrow@...>
Date: Tue Feb 25, 2003 10:28 pm
Subject: Re: [Clip] Dialer Operation
johnfarrow
Send Email Send Email
 
--- In ntb-clips@yahoogroups.com, "Info" <info@l...> wrote:
> I can't seem to find this file...Looks interesting..Where can I get
it?
> Many thanks,
> Chris
>
>
> *********** REPLY SEPARATOR  ***********
>
> On 2/24/2003 at 10:12 PM John <johnfarrow@r...> wrote:
>
> >I downloaded the 1dbase clp and it has a dialer function.  I
cannot
> >get the dialer to work.  I tried with the editor to
change "Dialer"
> >to the path for the Phone Dialer but still no luck.
> >   Other than that this is a real neat clip. I am using W2K
operating
> >system.  Can anyone help?
> >
> >
> >
> >
> >
> >
> >Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/

#9904 From: "Alan C." <acumming@...>
Date: Tue Feb 25, 2003 10:54 pm
Subject: Re: [Clip] find line in string
acummingsus
Send Email Send Email
 
Hi Jody,

Hope everything goes well. Here's wishing you best and hope you get well soon

>>Jody probably already wrote one.
>
>I don't really know what you are finding so I cannot tell if I
>did.  Does Manuel mean to get all the lines that the string is
>found in?

Yes. (what I meant)

Not what Manuel sought; his string only to be in one line so he get 1 line he up
and running fine.

1st quoted line above is mine; it's in reference to a clip that is/does any or
some sort of keyword searchable database of delimited items

I may write such a clip as (about it) follows.  But I'd wondered if similar
already written.

math algebra multiplication division whatever else also in this line
math geometry multiplication subtraction whatever else also in this line
math trigonometry division whatever else also in this line

above are three samples; each is a line delimited item of my data in a file.

My key or keys so as to find an entire line (or lines) are the words near the
left end of each line.

If I do a find for geometry then that one entire line is retrieved.

If I do a find for division then two lines are retrieved. math, 3 lines
retrieved.

If I find for these two words: multiplication subtraction

that search retrieves two lines.

get all the lines that the string is found in.  Feature of keyword searchable
using one or multiple keywords.  The more keywords used in a search, the
narrower the scope of the search and retrieval.  Conversely, use less keywords
for searching broadens the scope of the search and retrieval.

--
Alan.

#9905 From: loro <loro@...>
Date: Tue Feb 25, 2003 10:47 pm
Subject: Re: [Clip] Dialer Operation
yastupidhoo
Send Email Send Email
 
>    The clip  is PIM1 and its located at www.notetab.com.  Look under
>LIBRARIES,  then under OTHER.  Wish I could get the "Dialer" part of
>it to work.


I didn't know I had a dialer. I thought they all were evil programs that
downloaded from obscure sites. Anyway, I have it.

^!Dialer
doesn't work for me

^!Shell Dialer
works. At least it launches the program. I never ran the actual Clip you
are talking about. I just tried the command. Give it a go.

Lotta

#9906 From: Jody <av1611@...>
Date: Tue Feb 25, 2003 10:57 pm
Subject: Re: [Clip] Dialer Operation
notetabber
Send Email Send Email
 
Hi John,

>The clip  is PIM1 and its located at www.notetab.com.  Look under
>LIBRARIES,  then under OTHER.  Wish I could get the "Dialer" part of
>it to work.

You might be best off writing the author of the Library if you
have not done that yet.

Does your dialer have a Titlebar name of "Phone Dialer" in its
windows? If not, you can stop trying to get this to work.  I
don't know what Glenn means by ^!Dialer unless he means your
path.  I do see that you have to use the format he has in the
names.otl with the tab and vertical bar for it to work.  You
might be better off giving the list the steps you take to dial
the number manually (using menus, not icons) and the path to your
dialer.  We need to know the names on the Titlebars of all
windows that open.  It would be best if you added the steps line
by line, one step per line.

Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://groups.yahoo.com/group/ntb-clips

#9907 From: Jody <av1611@...>
Date: Tue Feb 25, 2003 11:00 pm
Subject: Re: [Clip] Dialer Operation
notetabber
Send Email Send Email
 
Hi Lotta,

>^!Shell Dialer
>works. At least it launches the program. I never ran the actual
>Clip you are talking about. I just tried the command. Give it a go.

Way to go Lotta; good thinking! :)


Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://groups.yahoo.com/group/ntb-clips

#9908 From: loro <loro@...>
Date: Tue Feb 25, 2003 11:16 pm
Subject: Re: [Clip] Dialer Operation
yastupidhoo
Send Email Send Email
 
Me wrote:
>^!Shell Dialer
>works.

I forgot to say that ^! seems to work with the full path. In my case:

^!C:\Program Files\Windows NT\dialer.exe

Lotta

#9909 From: Jody <av1611@...>
Date: Wed Feb 26, 2003 11:02 pm
Subject: Re: [Clip] find line in string
notetabber
Send Email Send Email
 
Hi Alan,

This does all you wanted except going into find two words.  Check
out my Replace Library for a "And, Or, but Not..." Clip.  See
below.

<---     Copy below this line     --->
H=Get Lines That Contain Search Criteria
; eMailed on 02-26-2003, Jody@...
; notetab.net, notetab.net/html/cd-info.htm

^!Jump 1
^!ClearVariable %List%
:Loop
^!Find "^?[Find what=^&]" S
^!IfError Show
^!Jump Line_Start
^!Set %GetLine%=^$GetLine$
^!Append %List%=^%GetLine%^%nl%
^!Jump +1
^!Goto Loop

:Show
^!Toolbar New Document
^%List%

<---     Copy above this line     --->
<---  Right click over a Library  --->
<---  Choose: Add from Clipboard   --->

Working examples of using Find and Replace in Clips:
http://www.notetab.net/zip/replace.zip

>Hope everything goes well. Here's wishing you best and hope you get well soon
>
>>>Jody probably already wrote one.
>>
>> I don't really know what you are finding so I cannot tell if I
>> did.  Does Manuel mean to get all the lines that the string is
>> found in?
>
>Yes. (what I meant)
>
>Not what Manuel sought; his string only to be in one line so he
>get 1 line he up and running fine.
>
>1st quoted line above is mine; it's in reference to a clip that
>is/does any or some sort of keyword searchable database of
>delimited items
>
>I may write such a clip as (about it) follows.  But I'd wondered
>if similar already written.
>
>math algebra multiplication division whatever else also in this line
>math geometry multiplication subtraction whatever else also in this line
>math trigonometry division whatever else also in this line
>If I do a find for division then two lines are retrieved. math, 3 lines
retrieved.
>
>If I find for these two words: multiplication subtraction
>
>that search retrieves two lines.


Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://groups.yahoo.com/group/ntb-clips

#9910 From: "Alan C." <acumming@...>
Date: Thu Feb 27, 2003 2:49 am
Subject: Re: [Clip] find line in string
acummingsus
Send Email Send Email
 
Hi Jody,

It work very fine.  Thanks.  But then I used it on a doc with some raather long
lines and the ntp the word wrap was on.  And it didn't work right, kept loooping
back until I ctrl + alt

I turned off the wordwrap then it worked fine.

I guess perhaps to check iswordwrap then turn off wordrap until end of clip then
set wordwrap as it was before?   I can handle that but thought i'd mention what
happend in case someone else to try the clip.

(nearly or off topic) if i get some xml data storage using perl to parse and/or
display and/or create the xml with also interface to NoteTab, I'll share the
clip portion, perl script, xml file of it on the Scripts list.

Alan.

>This does all you wanted except going into find two words.  Check
>out my Replace Library for a "And, Or, but Not..." Clip.  See
>below.
>
><---     Copy below this line     --->
>H=Get Lines That Contain Search Criteria
>; eMailed on 02-26-2003, Jody@...
>; notetab.net, notetab.net/html/cd-info.htm
<snipped>
>><snipped>a clip that
>>is/does any or some sort of keyword searchable database of
>>delimited items

#9911 From: Jody <av1611@...>
Date: Thu Feb 27, 2003 3:48 am
Subject: Re: [Clip] find line in string
notetabber
Send Email Send Email
 
Hi Alan C.,

>It work very fine.  Thanks.  But then I used it on a doc with
>some raather long lines and the ntp the word wrap was on.  And it
>didn't work right, kept loooping back until I ctrl + alt
>
>I turned off the wordwrap then it worked fine.

If I mess with word wrap at all I just force it off and turn it
on after the clip is done whether it was off or not. <g>  I use
to do all the checks and restore to original state, but I don't
waste my time with it anymore. ;)  I think I have a tool that
adds the code with a click on my Clipbar that has common sets of
code that I use fairly often.

Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://groups.yahoo.com/group/ntb-clips

#9912 From: "M. Sean Fosmire <msf@...>" <msf@...>
Date: Thu Feb 27, 2003 1:47 am
Subject: Variables - values don't stick
msean817
Send Email Send Email
 
I have created a clip which prompts for some input and then assigns
about five variables based on the value of the input.  There is text
after the labeled assignments, and the text displays properly with
the variables as expected.  The values don't stay with the variables,
though, when running another clip from the same library, using the
same variables.  (The library has not been closed; I know that would
clear all variables.)

I created a special "check variables" clip of the following form:

abc is ^%abc%
def is ^%def%

but running that clip prints out the two lines as they are shown
above -- i.e., the values are not substituted for the variables.

Can anyone help me figure out what is going on?

#9913 From: Sheri <silvermoonwoman@...>
Date: Thu Feb 27, 2003 2:01 pm
Subject: Re: [Clip] Variables - values don't stick
silvermoonwo...
Send Email Send Email
 
At 01:47 AM 2/27/03 +0000, you wrote:
>I have created a clip which prompts for some input and then assigns
>about five variables based on the value of the input.  There is text
>after the labeled assignments, and the text displays properly with
>the variables as expected.  The values don't stay with the variables,
>though, when running another clip from the same library, using the
>same variables.  (The library has not been closed; I know that would
>clear all variables.)
>
>I created a special "check variables" clip of the following form:
>
>abc is ^%abc%
>def is ^%def%
>
>but running that clip prints out the two lines as they are shown
>above -- i.e., the values are not substituted for the variables.
>
>Can anyone help me figure out what is going on?

Are you running the multiple clips from the clipbook, or are some of them run
from the clipbar? Variables are not shared between the clipbook and clipbar.
Variables set by clips run from the clipbar will be accessible to other clipbar
clips until cleared. If all your clips are being run from the clipbook, make
sure none of the other clipbook clips you use in the meanwhile has a
^!ClearVariables (plural) command. Of course you must also set the variables
with the correct notation surrounded by % signs, and include the caret only when
accessing the values they hold.

Hope it helps,
Sheri

#9914 From: hsavage <hsavage@...>
Date: Thu Feb 27, 2003 4:51 pm
Subject: Re: [Clip] Variables - values don't stick
hrs62930
Send Email Send Email
 
M. Sean Fosmire wrote:

>I have created a clip which prompts for some input and then assigns
>about five variables based on the value of the input.  There is text
>after the labeled assignments, and the text displays properly with
>the variables as expected.  The values don't stay with the variables,
>though, when running another clip from the same library, using the
>same variables.  (The library has not been closed; I know that would
>clear all variables.)
>
>I created a special "check variables" clip of the following form:
>
>abc is ^%abc%
>def is ^%def%
>
>but running that clip prints out the two lines as they are shown
>above -- i.e., the values are not substituted for the variables.
>
>Can anyone help me figure out what is going on?
>
>
Sean,

Maybe this will help.  This is a paragraph from Variable Help.  Notice
the ^%p_, prefix for variables.

hrs



Variables keep their value as long as the Clipbook is kept open. NoteTab
recognizes two types of variables: local variables that exist only
within the context of the library that created them (they are cleared if
you change libraries or close the Clipbook), and permanent variables
that keep their value even when you change libraries (but not if you
close the Clipbook).

Add the prefix "p_" to define a permanent variable (e.g. ^%p_KeepValue%).

If you want to preserve a variable's value even after closing NoteTab,
you can store it in an INI file by using the "^!SaveValue" command and
then restore it later by using the "^$GetValue()$" function.

#9915 From: "Alan C." <acumming@...>
Date: Thu Feb 27, 2003 6:57 pm
Subject: Re: [Clip] Variables - values don't stick
acummingsus
Send Email Send Email
 
Hi,

Might not, but might be worthy of mention:

I'm unable to remember the reasons for it; nonetheless, that sometimes a command
is needed, sometimes command not needed.  You might also try quotes as per 2nd
example.

The command I speak of:  ^!InsertText

^!InsertText abc is ^%abc%

^!InsertText "abc is ^%abc%"

there's also ^!InsertCode
and  ^!InsertHtml

help > help on clip programming > click index tab > scroll to item > select item
and then click the display button

<snipped>
>I created a special "check variables" clip of the following form:
>
>abc is ^%abc%
>def is ^%def%
>
>but running that clip prints out the two lines as they are shown
>above -- i.e., the values are not substituted for the variables.
<snipped>

#9916 From: "M. Sean Fosmire <msf@...>" <msf@...>
Date: Thu Feb 27, 2003 11:23 pm
Subject: Re: Variables - values don't stick
msean817
Send Email Send Email
 
I discovered that this is a problem only on a computer running
Windows XP.  I ran the same clip on a machine running Windows 2000
and it ran as expected.

The following is the entire text of a simple .CLB file which
demonstrates the problem on an XP system:

--------------
= V5 MultiLine AutoReplace TabWidth=30

H="Create"
^!Set %var1%=^?[Enter a string]

The string is ^%var1%

H="Play"
The string is ^%var1%

--------------

Running "create" results in the sentence being displayed with
whatever value the user entered.  Running "play" results in the
following displaying:

The string is ^%var1%

One would expect that the value of the variable would remain so that
it could be used again.  Based on the documentation, it appears that
calling the variable %p_var1% is not necessary unless one switches
from this library to another.

One would also expect, if the value of the variable is lost,
running "play" would result in:

The string is


--- In ntb-clips@yahoogroups.com, "M. Sean Fosmire <msf@t...>"
<msf@t...> wrote:
> I have created a clip which prompts for some input and then assigns
> about five variables based on the value of the input.  There is
text
> after the labeled assignments, and the text displays properly with
> the variables as expected.  The values don't stay with the
variables,
> though, when running another clip from the same library, using the
> same variables.  (The library has not been closed; I know that
would
> clear all variables.)
>
> I created a special "check variables" clip of the following form:
>
> abc is ^%abc%
> def is ^%def%
>
> but running that clip prints out the two lines as they are shown
> above -- i.e., the values are not substituted for the variables.
>
> Can anyone help me figure out what is going on?

#9917 From: "Larry Hamilton" <lmh@...>
Date: Thu Feb 27, 2003 11:27 pm
Subject: Re: [Clip] Re: Variables - values don't stick
lm_hamilton
Send Email Send Email
 
I have WinXP Home and it works as it should. It could be a permissions
issue, if your user does not have appropriate security settings.

Larry

msf@... wrote:
> I discovered that this is a problem only on a computer running
> Windows XP.  I ran the same clip on a machine running Windows 2000
> and it ran as expected.
>
> The following is the entire text of a simple .CLB file which
> demonstrates the problem on an XP system:
>
> --------------
> = V5 MultiLine AutoReplace TabWidth=30
>
> H="Create"
> ^!Set %var1%=^?[Enter a string]
>
> The string is ^%var1%
>
> H="Play"
> The string is ^%var1%

#9918 From: hsavage <hsavage@...>
Date: Thu Feb 27, 2003 11:35 pm
Subject: Re: [Clip] Re: Variables - values don't stick
hrs62930
Send Email Send Email
 
Larry Hamilton wrote:

>I have WinXP Home and it works as it should. It could be a permissions
>issue, if your user does not have appropriate security settings.
>
>Larry
>
>msf@... wrote:
>
>
>>I discovered that this is a problem only on a computer running
>>Windows XP.  I ran the same clip on a machine running Windows 2000
>>and it ran as expected.
>>
>>The following is the entire text of a simple .CLB file which
>>demonstrates the problem on an XP system:
>>
>>--------------
>>= V5 MultiLine AutoReplace TabWidth=30
>>
>>H="Create"
>>^!Set %var1%=^?[Enter a string]
>>
>>The string is ^%var1%
>>
>>H="Play"
>>The string is ^%var1%
>>
>>
Sean, Larry,

Works on XP here also.

hrs

#9919 From: "John Zeman <john041650@...>" <john041650@...>
Date: Fri Feb 28, 2003 12:56 pm
Subject: Re: Variables - values don't stick
john041650
Send Email Send Email
 
If your command line in the "Play" clip is literally as you post it here, then
is there is no command to execute in it..  So NoteTab is probably interpreting
the entire line as text, only.  Have you tried changing your clip from this:

H="Play"
The string is ^%var1%

to:

H="Play"
^!InsertText The string is ^%var1%



John




--- In ntb-clips@yahoogroups.com, "M. Sean Fosmire <msf@t...>" <msf@t...> wrote:
> I discovered that this is a problem only on a computer running
> Windows XP.  I ran the same clip on a machine running Windows 2000
> and it ran as expected.
>
> The following is the entire text of a simple .CLB file which
> demonstrates the problem on an XP system:
>
> --------------
> = V5 MultiLine AutoReplace TabWidth=30
>
> H="Create"
> ^!Set %var1%=^?[Enter a string]
>
> The string is ^%var1%
>
> H="Play"
> The string is ^%var1%
>
> --------------
>
> Running "create" results in the sentence being displayed with
> whatever value the user entered.  Running "play" results in the
> following displaying:
>
> The string is ^%var1%
>
> One would expect that the value of the variable would remain so that
> it could be used again.  Based on the documentation, it appears that
> calling the variable %p_var1% is not necessary unless one switches
> from this library to another.
>
> One would also expect, if the value of the variable is lost,
> running "play" would result in:
>
> The string is
>
>
> --- In ntb-clips@yahoogroups.com, "M. Sean Fosmire <msf@t...>"
> <msf@t...> wrote:
> > I have created a clip which prompts for some input and then assigns
> > about five variables based on the value of the input.  There is
> text
> > after the labeled assignments, and the text displays properly with
> > the variables as expected.  The values don't stay with the
> variables,
> > though, when running another clip from the same library, using the
> > same variables.  (The library has not been closed; I know that
> would
> > clear all variables.)
> >
> > I created a special "check variables" clip of the following form:
> >
> > abc is ^%abc%
> > def is ^%def%
> >
> > but running that clip prints out the two lines as they are shown
> > above -- i.e., the values are not substituted for the variables.
> >
> > Can anyone help me figure out what is going on?

#9920 From: Sheri <silvermoonwoman@...>
Date: Fri Feb 28, 2003 3:15 pm
Subject: Re: [Clip] Variables - values don't stick
silvermoonwo...
Send Email Send Email
 
At 10:51 AM 2/27/03 -0600, hsavage wrote:
>Add the prefix "p_" to define a permanent variable (e.g. ^%p_KeepValue%).

How about that? I didn't know it.

Thanks,
Sheri

#9921 From: "M. Sean Fosmire <msf@...>" <msf@...>
Date: Sat Mar 1, 2003 2:31 am
Subject: Re: Variables - values don't stick
msean817
Send Email Send Email
 
BINGO!  That was it!

All of the clips had simple text, with inserted variables, without
the ^!InsertText command.  (The documentation does not make it clear
that this should be used.)  It appears that the clip language under
Windows 2000 is more forgiving on this point than under Win XP.

Thanks to all for your help and advice.


--- In ntb-clips@yahoogroups.com, "John Zeman <john041650@y...>"
<john041650@y...> wrote:
> If your command line in the "Play" clip is literally as you post it
here, then is there is no command to execute in it..  So NoteTab is
probably interpreting the entire line as text, only.  Have you tried
changing your clip from this:
>
> H="Play"
> The string is ^%var1%
>
> to:
>
> H="Play"
> ^!InsertText The string is ^%var1%

#9922 From: Jody <av1611@...>
Date: Fri Feb 28, 2003 10:40 pm
Subject: Re: [Clip] Re: Variables - values don't stick
notetabber
Send Email Send Email
 
Hi John,

No command is needed to have text inserted into a document which
includes text in a variable. Try his Clips the way they are and
you will see.  I don't use ^!Insert, ^!InsertText, etc. normally
unless I want more control over the positioning of lines above
and below with ^p.  ^%nl% can be used though when using text
without ^!InsertText for new lines.  When using text without
^!Insert you can skip lines for the new lines.  It is sort of
like using the <pre>tag</pre> in HTML if you are familiar with
that.

>If your command line in the "Play" clip is literally as you post
>it here, then is there is no command to execute in it..  So
>NoteTab is probably interpreting the entire line as text, only.
>Have you tried changing your clip from this:
>
>H="Play"
>The string is ^%var1%
>
>to:
>
>H="Play"
>^!InsertText The string is ^%var1%


Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://groups.yahoo.com/group/ntb-clips

#9923 From: Jody <av1611@...>
Date: Sat Mar 1, 2003 7:07 am
Subject: Re: [Clip] Re: Variables - values don't stick
notetabber
Send Email Send Email
 
Hi M. Sean,

>BINGO!  That was it!

I believe you still have a problem.  ^!Insert or ^!InsertText is not
needed.  There was a time when at least "^!" had to be in the Clip
for certain other code to work.  I think it was wizards: ^?[Test].
It appears Eric may have fixed it so that "^!" is not needed at all
anymore or I forget the certain code that would not work.  Your
original Clip was tested and worked in XP for at least two of us
that tried.  I'm glad it works for you, but it is added code that
you have to put in that is not needed.  I have many a Clips that do
what you had.  In fact, when the Clip Code was much smaller, only a
few dozen commands maybe, it was common practice to use pure text.
Variables containing text do indeed get processed w/o using ^!Insert
or ^!InsertText.  I'd be curious to know what it does know if you
take ^!InsertText out.

>All of the clips had simple text, with inserted variables, without
>the ^!InsertText command.  (The documentation does not make it clear
>that this should be used.)  It appears that the clip language under
>Windows 2000 is more forgiving on this point than under Win XP.
>
>Thanks to all for your help and advice.
>
>
>--- In ntb-clips@yahoogroups.com, "John Zeman <john041650@y...>"
><john041650@y...> wrote:
>> If your command line in the "Play" clip is literally as you post it
>here, then is there is no command to execute in it..  So NoteTab is
>probably interpreting the entire line as text, only.  Have you tried
>changing your clip from this:
>>
>> H="Play"
>> The string is ^%var1%
>>
>> to:
>>
>> H="Play"
>> ^!InsertText The string is ^%var1%


Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://groups.yahoo.com/group/ntb-clips

Messages 9894 - 9923 of 23888   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