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 10610 - 10639 of 23787   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#10610 From: "mbl60181" <mlafount@...>
Date: Tue Jul 1, 2003 4:54 pm
Subject: Staus check of ^!SetDebug
mbl60181
Send Email Send Email
 
Does anyone know how to check the status of debug from within a clip?
I know that sounds like a silly question but it isn't really...

I have a clip that is only used by ^!Farclip. When the ^!Farclip is
used, I don't need debug on, but when I return to the parent clip, I
would like to restore the status of the debug command: On if it was
on or Off if it was off.

Anyone got any ideas?  I know I could pass a flag (variable) to the ^!
Farclip but it would be easier if I could just check from within the
^!Farclip.

Thanks Much!
-Mike LaFountain

#10611 From: RS <ptools@...>
Date: Tue Jul 1, 2003 6:12 pm
Subject: Re: [Clip] Staus check of ^!SetDebug
rs032602
Send Email Send Email
 
Mike,

At 04:54 PM 07/01/03 -0000 you wrote:
>Does anyone know how to check the status of debug from within a clip?
>I know that sounds like a silly question but it isn't really...
>
>I have a clip that is only used by ^!Farclip. When the ^!Farclip is
>used, I don't need debug on, but when I return to the parent clip, I
>would like to restore the status of the debug command: On if it was
>on or Off if it was off.
>
>Anyone got any ideas?  I know I could pass a flag (variable) to the ^!
>Farclip but it would be easier if I could just check from within the
>^!Farclip.
>

I would turn off debugging before the call to FarClip and enable it afterwards:

^!SetDebug OFF
^!Farclip A_Clip_That_Doesnt_Need_Debugging
^!SetDebug ON



Regards,

RS

#10612 From: Larry Thomas <larryt@...>
Date: Tue Jul 1, 2003 5:15 pm
Subject: Re: [Clip] Staus check of ^!SetDebug
back3home2003
Send Email Send Email
 
At 04:54 PM 7/1/03 -0000, you wrote:
>Does anyone know how to check the status of debug from within a clip?
>I know that sounds like a silly question but it isn't really...
>
>I have a clip that is only used by ^!Farclip. When the ^!Farclip is
>used, I don't need debug on, but when I return to the parent clip, I
>would like to restore the status of the debug command: On if it was
>on or Off if it was off.
>
>Anyone got any ideas?  I know I could pass a flag (variable) to the ^!
>Farclip but it would be easier if I could just check from within the
>^!Farclip.
>
>Thanks Much!
>-Mike LaFountain

It doesn;t seem to me necessary to know the status of Setdebug.  Just do
the following in your code.

If SetDebug is on:

^!SetDebug Off
^!Farclip.....
%!SetDebug On

If SetDebug is Off

^!SetDebug On
^!Farclip.....
%!SetDebug Off

And that would seem to take care of your problem.

In fact you can pass commands to a variable and use them in this fashion:

^!Set %Command%=SetDebug On

then at the proper place(s) in your code

^!^%Command%

I hope this helps.

Regards,

Larry
lrt@... e¿ê

#10613 From: Larry Thomas <larryt@...>
Date: Tue Jul 1, 2003 6:42 pm
Subject: Re: [Clip] Staus check of ^!SetDebug
back3home2003
Send Email Send Email
 
At 04:54 PM 7/1/03 -0000, you wrote:
>Does anyone know how to check the status of debug from within a clip?
>I know that sounds like a silly question but it isn't really...
>

I think that I have the solution to what you want to do.  First set a
veriable for the command.

^!Set %Command%=SetDebug On

Then place the following code where ever you want to start Debug.

^!^%Command%

Now place the following code at the start of you clip that you are calling
from Farclip.

^!IfSame "^%Command%" "SetDebug On" Next ELSE Skip
^!SetDebug Off
^!IfSame "^%Command%" "SetDebug Off" Next ELSE Skip
^!SetDebug On

And place the following code at the end of your clip that you are calling
from Farclip.

^!IfSame "^%Command%" "SetDebug Off" Next ELSE Skip
^!SetDebug On
^!IfSame "^%Command%" "SetDebug On" Next ELSE Skip
^!SetDebug Off

You will have to test this but if ^%Command% is not set to either value, I
think that it will do nothing as the lines to turn Debug on or off will be
skipped.

Regards,

Larry
lrt@... e¿ê

#10614 From: "mbl60181" <mlafount@...>
Date: Tue Jul 1, 2003 6:55 pm
Subject: Re: [Clip] Staus check of ^!SetDebug
mbl60181
Send Email Send Email
 
Larry wrote
>
> It doesn;t seem to me necessary to know the status of Setdebug.
Just do
> the following in your code.
>
> If SetDebug is on:
>
> ^!SetDebug Off
> ^!Farclip.....
> %!SetDebug On

Yes but... the ^!Farclip is ran several times (over 10) from the
clip I'm writting. So this is a mild pain in the dupa.


> In fact you can pass commands to a variable and use them in this
fashion:
>
> ^!Set %Command%=SetDebug On
>
> then at the proper place(s) in your code
>
> ^!^%Command%
>
> I hope this helps.

I didn't know you could do that. I'll keep it in mind. It might be
useful sometime :-) But it's kinda overkill for this situation. It is
the equivelent of passing a flag to the ^!Farclip. I could just as
easily say:

   ^!Set %DebugStatus%=On

Then check it in the ^!Farclip. I'm looking for a method to not set
additional flags and still check the debug status. That would make
the routine more self-contained.

-Mike

#10615 From: Larry Thomas <larryt@...>
Date: Tue Jul 1, 2003 6:57 pm
Subject: Setting Flags in Clips was: Staus check of ^!SetDebug
back3home2003
Send Email Send Email
 
I guess that my two prior posts would suggest ways to use variables as a
flag to send a clip to many different places using the form:

^!Set %Command%=Goto Label 1
^!Set %Command%=Goto Label 2
^!Set %Command%=Goto Label 3
^!Set %Command%=Goto Loop

^!Set %Command%=Clip "ClipName"
^!Set %Command%=Farclip LibraryName:ClipName
^!Set %Command%=Farclip LibraryName3:ClipName2

And then placing

^!^%Command%

At one or more places in the clip which would move the action away from the
testing function that made the decision as to which label or subclip to
execute.



Regards,

Larry
lrt@... e¿ê

#10616 From: "Don Passenger" <dpasseng@...>
Date: Tue Jul 1, 2003 7:22 pm
Subject: Re: [Clip] Staus check of ^!SetDebug
dpasseng
Send Email Send Email
 
If you look at the is functions here:

mk:@MSITStore:C:\Program%20Files\NoteTab%20Pro\ClipCode.chm::/clip_language_
__testing_condit.htm

(you may need to adjust if your hard drive is diff -- but it is under
Testing Conditions in the Clip Help) you won't find ^$IsDeBug$ there.  I
assume that means it doesn't exist.

I sometimes use:
^!Set %word_wrap%=^$IsWordWrap$
^!SetWordWrap 0
;code here
^!SetWordWrap ^%word_wrap%
which will return wordwrap status to where it was before (as usual I ripped
the idea off from someone).  I think that is what you are trying to do on
your clip.  I don't think Larry's clip works unless you have set the
wordwrap status using the variable, but absent a "program variable" set
somewhere, I think it is probably the only way to do it.  There must be such
a "program variable" obviously, but the question I suppose is ... can we
access it?

--

Don Passenger

If you need an html fix visit
http://www.htmlfixit.com

html/perl/php/xhtml/javascript presented
in easy tutorials with live help and forums
to fix your problems
----- Original Message -----
From: "mbl60181" <mlafount@...>
To: <ntb-clips@yahoogroups.com>
Sent: Tuesday, July 01, 2003 2:55 PM
Subject: Re: [Clip] Staus check of ^!SetDebug


> Larry wrote
> >
> > It doesn;t seem to me necessary to know the status of Setdebug.
> Just do
> > the following in your code.
> >
> > If SetDebug is on:
> >
> > ^!SetDebug Off
> > ^!Farclip.....
> > %!SetDebug On
>
> Yes but... the ^!Farclip is ran several times (over 10) from the
> clip I'm writting. So this is a mild pain in the dupa.
>
>
> > In fact you can pass commands to a variable and use them in this
> fashion:
> >
> > ^!Set %Command%=SetDebug On
> >
> > then at the proper place(s) in your code
> >
> > ^!^%Command%
> >
> > I hope this helps.
>
> I didn't know you could do that. I'll keep it in mind. It might be
> useful sometime :-) But it's kinda overkill for this situation. It is
> the equivelent of passing a flag to the ^!Farclip. I could just as
> easily say:
>
>   ^!Set %DebugStatus%=On
>
> Then check it in the ^!Farclip. I'm looking for a method to not set
> additional flags and still check the debug status. That would make
> the routine more self-contained.
>
> -Mike

#10617 From: "mbl60181" <mlafount@...>
Date: Tue Jul 1, 2003 6:39 pm
Subject: Re: [Clip] Staus check of ^!SetDebug
mbl60181
Send Email Send Email
 
RS Wrote:
> I would turn off debugging before the call to FarClip and enable it
afterwards:
>
> ^!SetDebug OFF
> ^!Farclip A_Clip_That_Doesnt_Need_Debugging
> ^!SetDebug ON
>

Sure could but... I'm calling the ^!Farclip about 10 times in
many different places and didn't want to bother with that method.

-Mike

#10618 From: Kevin Witherite <KWITHERITE@...>
Date: Tue Jul 1, 2003 8:01 pm
Subject: Help with Note Tab
KWITHERITE@...
Send Email Send Email
 
Once a number is determined through the use of ^$Calc  can that number now
be used in the same clip, maybe as a variable?

For example:

^$Calc(((arctan(^?[Rise of Hip Rafter:]/^?[Horizontal or Linear length of
Hip Rafter:]))*180)/3.141593;6)$

^!Set %Acquired Angle%="I DONT KNOW WHAT TO PUT HERE"

Any idea's?

Kevin

#10619 From: Larry Thomas <larryt@...>
Date: Tue Jul 1, 2003 8:21 pm
Subject: Re: [Clip] Help with Note Tab
back3home2003
Send Email Send Email
 
Hi Kevin,

At 04:01 PM 7/1/03 -0400, you wrote:
>
>Once a number is determined through the use of ^$Calc  can that number now
>be used in the same clip, maybe as a variable?
>
>For example:
>
>^$Calc(((arctan(^?[Rise of Hip Rafter:]/^?[Horizontal or Linear length of
>Hip Rafter:]))*180)/3.141593;6)$
>
>^!Set %Acquired Angle%="I DONT KNOW WHAT TO PUT HERE"

^!Set %Acquired Angle%=^$Calc(((arctan(^?[Rise of Hip
Rafter:]/^?[Horizontal or Linear length of Hip Rafter:]))*180)/3.141593;6)$

That should do it although it looks kind of long and cumbersome.  But if it
works....



Regards,

Larry
lrt@... e¿ê

#10620 From: Kevin Witherite <KWITHERITE@...>
Date: Tue Jul 1, 2003 8:30 pm
Subject: RE: [Clip] Help with Note Tab
KWITHERITE@...
Send Email Send Email
 
Then would you use the variable like such:

^$Calc(26.9987-%Aquired Angle%)

Are spaces important in the clip?

-----Original Message-----
From: Larry Thomas [mailto:larryt@...]
Sent: Tuesday, July 01, 2003 1:22 PM
To: ntb-clips@yahoogroups.com
Subject: Re: [Clip] Help with Note Tab



Hi Kevin,

At 04:01 PM 7/1/03 -0400, you wrote:
>
>Once a number is determined through the use of ^$Calc  can that number
>now be used in the same clip, maybe as a variable?
>
>For example:
>
>^$Calc(((arctan(^?[Rise of Hip Rafter:]/^?[Horizontal or Linear length
>of Hip Rafter:]))*180)/3.141593;6)$
>
>^!Set %Acquired Angle%="I DONT KNOW WHAT TO PUT HERE"

^!Set %Acquired Angle%=^$Calc(((arctan(^?[Rise of Hip Rafter:]/^?[Horizontal
or Linear length of Hip Rafter:]))*180)/3.141593;6)$

That should do it although it looks kind of long and cumbersome.  But if it
works....



Regards,

Larry
lrt@... e¿ê


------------------------ Yahoo! Groups Sponsor ---------------------~--> Get
A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/dkFolB/TM
---------------------------------------------------------------------~->



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

#10621 From: "Don Passenger" <dpasseng@...>
Date: Tue Jul 1, 2003 8:49 pm
Subject: Re: [Clip] Help with Note Tab
dpasseng
Send Email Send Email
 
^!Set %Acquired_Angle%=^$Calc(((arctan(^?[Rise of Hip Rafter:]/^?[Horizontal
or Linear length of Hip Rafter:]))*180)/3.141593;6)$

at least if your math is good :-)

^!Set %Acquired_Angle%=^$Calc(((arctan(^?[Rise of Hip Rafter:]/^?[Horizontal
or Linear length of Hip Rafter:]))*180)/3.141593;6)$
^!Continue ^%Acquired_Angle%

if you want to use the variable you use a ^ in front of it

#10622 From: "Don Passenger" <dpasseng@...>
Date: Tue Jul 1, 2003 9:30 pm
Subject: Re: [Clip] Help with Note Tab
dpasseng
Send Email Send Email
 
oh and yes, spaces are important!
in fact you cannot have a space in a variable name ... notice that I used an
inderscore in my examples
Help says:

A variable name can be made up of any character except those that delimit
words (space, tab, punctuation, carriage return, etc.). The name must also
be bound by a percentage character "%". The left side "%" must be preceded
with a circumflex accent "^" when you are referring to the value it
contains.



--

Don Passenger

If you need an html fix visit
http://www.htmlfixit.com

html/perl/php/xhtml/javascript presented
in easy tutorials with live help and forums
to fix your problems
----- Original Message -----
From: "Kevin Witherite" <KWITHERITE@...>
To: <ntb-clips@yahoogroups.com>
Sent: Tuesday, July 01, 2003 4:30 PM
Subject: RE: [Clip] Help with Note Tab


> Then would you use the variable like such:
>
> ^$Calc(26.9987-%Aquired Angle%)
>
> Are spaces important in the clip?
>
> -----Original Message-----
> From: Larry Thomas [mailto:larryt@...]
> Sent: Tuesday, July 01, 2003 1:22 PM
> To: ntb-clips@yahoogroups.com
> Subject: Re: [Clip] Help with Note Tab
>
>
>
> Hi Kevin,
>
> At 04:01 PM 7/1/03 -0400, you wrote:
> >
> >Once a number is determined through the use of ^$Calc  can that number
> >now be used in the same clip, maybe as a variable?
> >
> >For example:
> >
> >^$Calc(((arctan(^?[Rise of Hip Rafter:]/^?[Horizontal or Linear length
> >of Hip Rafter:]))*180)/3.141593;6)$
> >
> >^!Set %Acquired Angle%="I DONT KNOW WHAT TO PUT HERE"
>
> ^!Set %Acquired Angle%=^$Calc(((arctan(^?[Rise of Hip
Rafter:]/^?[Horizontal
> or Linear length of Hip Rafter:]))*180)/3.141593;6)$
>
> That should do it although it looks kind of long and cumbersome.  But if
it
> works....
>
>
>
> Regards,
>
> Larry
> lrt@... e¿ê
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>

#10623 From: "Don Passenger" <dpasseng@...>
Date: Tue Jul 1, 2003 9:28 pm
Subject: Re: [Clip] Calculating with Variables - was Help with Note Tab
dpasseng
Send Email Send Email
 
:start
^!SetWizardLabel "Enter values For Rafter"
^!SET %rise%=^?{Rise of Hip Rafter:}; %run%=^?{Horizontal or Linear length
of Hip Rafter:}
^!Set %Acquired_Angle%=^$Calc(((arctan(^%rise%/^%run%))*180)/3.141593;6)$
^!Continue ^%Acquired_Angle%
^!ClearVariable ^%Acquired_Angle%
^!Goto start

Advantage is that it repeats.


--

Don Passenger

If you need an html fix visit
http://www.htmlfixit.com

html/perl/php/xhtml/javascript presented
in easy tutorials with live help and forums
to fix your problems
----- Original Message -----
From: "Don Passenger" <dpasseng@...>
To: <ntb-clips@yahoogroups.com>
Sent: Tuesday, July 01, 2003 4:49 PM
Subject: Re: [Clip] Help with Note Tab


> ^!Set %Acquired_Angle%=^$Calc(((arctan(^?[Rise of Hip
Rafter:]/^?[Horizontal
> or Linear length of Hip Rafter:]))*180)/3.141593;6)$
>
> at least if your math is good :-)
>
> ^!Set %Acquired_Angle%=^$Calc(((arctan(^?[Rise of Hip
Rafter:]/^?[Horizontal
> or Linear length of Hip Rafter:]))*180)/3.141593;6)$
> ^!Continue ^%Acquired_Angle%
>
> if you want to use the variable you use a ^ in front of it
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>

#10624 From: "hugo_paulissen" <H.Paulissen@...>
Date: Tue Jul 1, 2003 9:38 pm
Subject: Re: Staus check of ^!SetDebug
hugo_paulissen
Send Email Send Email
 
> >
> > ^!SetDebug OFF
> > ^!Farclip A_Clip_That_Doesnt_Need_Debugging
> > ^!SetDebug ON
> >
>
> Sure could but... I'm calling the ^!Farclip about 10 times in
> many different places and didn't want to bother with that method.
>
> -Mike

Mike (et al),

Why don't you ^!SetDebug OFF at the beginning of the FARCLIP and
switch it back [^!SetDebug] ON at the end of it?

Hugo

#10625 From: RS <ptools@...>
Date: Tue Jul 1, 2003 10:49 pm
Subject: Re: [Clip] Staus check of ^!SetDebug
rs032602
Send Email Send Email
 
Mike,

At 06:39 PM 07/01/03 -0000 you wrote:
>RS Wrote:
>> I would turn off debugging before the call to FarClip and enable it
>afterwards:
>>
>> ^!SetDebug OFF
>> ^!Farclip A_Clip_That_Doesnt_Need_Debugging
>> ^!SetDebug ON
>>
>
>Sure could but... I'm calling the ^!Farclip about 10 times in
>many different places and didn't want to bother with that method.
>


Then, do it in the FarClip:

H=YourFarClip
^!SetDebug OFF
[... here the clip's code ...]
^!SetDebug ON




Regards,

RS

#10626 From: Larry Thomas <larryt@...>
Date: Tue Jul 1, 2003 9:54 pm
Subject: Re: [Clip] Re: Staus check of ^!SetDebug
back3home2003
Send Email Send Email
 
Hi Hugo,

At 09:38 PM 7/1/03 -0000, you wrote:
>
>Mike (et al),
>
>Why don't you ^!SetDebug OFF at the beginning of the FARCLIP and
>switch it back [^!SetDebug] ON at the end of it?
>
Because he will not want the subclip to turn Debug on when it finishes
after he has finished testing the main clip and removed the ^!SetDebug On
from it.  If he had modified the Farclip then he would have to go back and
remove the modifications.

Mike, I have another idea though.  You could modify the subclip as follows:

At the beginning of the subclip place this code:

^!IfSame "^%BeginStatus%" "^%Empty% Skip Else Next
^!^%BeginStatus%

At the end of the subclip place this code:

^!IfSame "^%EndStatus%" "^%Empty% End Else Next
^!^%EndStatus%


When you insert the ^!SetDebug On code into the main clip that calls the
subclip, also include the following code:

^!Set %BeginStatus%=SetDebug Off
^!Set %EndStatus%=SetDebug On

Now you can fun the Farclip 10 times or 100 time or 1000 times and it will
automatically turn of the Debug option everytime it is run and turn it back
on when it returns to the main clip.

Regards,

Larry
lrt@... e¿ê

#10627 From: "Alan C." <acumming@...>
Date: Tue Jul 1, 2003 10:08 pm
Subject: Re: [Clip] Calculating with Variables - was Help with Note Tab
acummingsus
Send Email Send Email
 
On Tue, 1 Jul 2003 17:28:29 -0400, Don Passenger wrote:
<snip code>
>^!ClearVariable ^%Acquired_Angle%

^!ClearVariable %Acquired_Angle%

It's been a while.  But didn't I once discover the latter somehow has affect? 
(^% vs. %)  I think it needs to be the latter.

I'm asking outside of myself because that's where the task lies in order for ME
to remember.

Don't y'all just love to remind me what and when to remember?  (chuckle)

(untested, gotta run off elsewhere)

--
Alan.

#10628 From: "Don Passenger" <dpasseng@...>
Date: Wed Jul 2, 2003 12:27 am
Subject: Re: [Clip] Calculating with Variables - was Help with Note Tab
dpasseng
Send Email Send Email
 
> >^!ClearVariable ^%Acquired_Angle%
>
> ^!ClearVariable %Acquired_Angle%
>
> It's been a while.  But didn't I once discover the latter somehow has
affect?  (^% vs. %)  I think it needs to be the latter.
^!ClearVariable %VariableName%
Empties the specified variable.

right you are Alan!  When you do an action to a variable as opposed to with
a variable is how I try to remember.  I still mess it up sometimes ...
including right here today :-)

#10629 From: "Alec Burgess" <burale@...>
Date: Wed Jul 2, 2003 2:22 am
Subject: Re: [Clip] Staus check of ^!SetDebug
alecb3ca
Send Email Send Email
 
RS, (Mike et al)

Problem is (I think) that Mike NEVER needs to debug inside the Farclip
(presumably its already been thoroughly debugged) but SOMETIMES he's using
it in the main clip and if on before entry he wants it restored upon exit.

If Notetab doesn't provide a primitive that captures the status of SetDebug
ON/OFF I can't see anyway around using some intermediate variable that he
always sets at the same time SetDebug itself is changed.

Then any section of code that is to be NEVER debugged can unconditionally
turn it off on entry and conditionally restore it on exit based on the value
of the semaphore.

Maybe a single (called) clip done right could be used at entry and exit and
a pair of clip buttons created to toggle the semaphore and the SetDebug
ON/OFF in sync.

As badly as I code, if I did more or of it I probably wind doing something
like this.

IMHO: Addition of an ^&IsDebugOn$ would be useful if not essential


Regards ... Alec
--

---- Original Message ----
From: "RS" <ptools@...>
To: <ntb-clips@yahoogroups.com>
Sent: Tuesday, July 01, 2003 18:49
Subject: Re: [Clip] Staus check of ^!SetDebug

> Mike,
>
> At 06:39 PM 07/01/03 -0000 you wrote:
>> RS Wrote:
>>> I would turn off debugging before the call to FarClip and enable it
>>> afterwards:
>>>
>>> ^!SetDebug OFF
>>> ^!Farclip A_Clip_That_Doesnt_Need_Debugging
>>> ^!SetDebug ON
>>>
>>
>> Sure could but... I'm calling the ^!Farclip about 10 times in
>> many different places and didn't want to bother with that method.
>>
>
>
> Then, do it in the FarClip:
>
> H=YourFarClip
> ^!SetDebug OFF
> [... here the clip's code ...]
> ^!SetDebug ON

#10630 From: Kevin Witherite <KWITHERITE@...>
Date: Wed Jul 2, 2003 12:30 pm
Subject: RE: [Clip] Calculating with Variables - was Help with Note Tab
KWITHERITE@...
Send Email Send Email
 
Thanks Don that was an immense help.

-----Original Message-----
From: Don Passenger [mailto:dpasseng@...]
Sent: Tuesday, July 01, 2003 2:28 PM
To: ntb-clips@yahoogroups.com
Subject: Re: [Clip] Calculating with Variables - was Help with Note Tab


:start
^!SetWizardLabel "Enter values For Rafter"
^!SET %rise%=^?{Rise of Hip Rafter:}; %run%=^?{Horizontal or Linear length
of Hip Rafter:} ^!Set
%Acquired_Angle%=^$Calc(((arctan(^%rise%/^%run%))*180)/3.141593;6)$
^!Continue ^%Acquired_Angle%
^!ClearVariable ^%Acquired_Angle%
^!Goto start

Advantage is that it repeats.


--

Don Passenger

If you need an html fix visit
http://www.htmlfixit.com

html/perl/php/xhtml/javascript presented
in easy tutorials with live help and forums
to fix your problems
----- Original Message -----
From: "Don Passenger" <dpasseng@...>
To: <ntb-clips@yahoogroups.com>
Sent: Tuesday, July 01, 2003 4:49 PM
Subject: Re: [Clip] Help with Note Tab


> ^!Set %Acquired_Angle%=^$Calc(((arctan(^?[Rise of Hip
Rafter:]/^?[Horizontal
> or Linear length of Hip Rafter:]))*180)/3.141593;6)$
>
> at least if your math is good :-)
>
> ^!Set %Acquired_Angle%=^$Calc(((arctan(^?[Rise of Hip
Rafter:]/^?[Horizontal
> or Linear length of Hip Rafter:]))*180)/3.141593;6)$ ^!Continue
> ^%Acquired_Angle%
>
> if you want to use the variable you use a ^ in front of it
>
>
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>


------------------------ Yahoo! Groups Sponsor ---------------------~--> Get
A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/dkFolB/TM
---------------------------------------------------------------------~->



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

#10631 From: "mbl60181" <mlafount@...>
Date: Wed Jul 2, 2003 5:16 pm
Subject: Re: Staus check of ^!SetDebug
mbl60181
Send Email Send Email
 
Thanks folks for all your suggestions. Looks like what I really need
isn't in the current version... something like ^$IsDebugOn$. Maybe
Eric will add it in V.5

Thanks again!
-Mike LaFountain

P.S.

For your amusement... I present the ^!Farclip in question. It's
really very simple. I got tired of writing endless loops to find the
position of an array element. So I wrote this little routine
to "LookUp" the position.

;L O O K U P

; This routine returns the position of the search argument
; in an array. The search is case sensitive.

; PARAMETERS IN:
;  ^%LkupSource%=  The data to find in an array (search argument)
;  ^%LkupSearch%=  The array to be search
;  ^%LkupErrMsg%=  If passed as "No", action is not taken if the
search
;                    argument isn't found in the array.
;                  If passed as "Yes", an error message is issued and
;                    ^!SetDebug is turned on.
;  ^%LkupStart%=   Optional: Starting array element for array search.
;                    If zero or blank element 1 is used.
; PARAMETERS OUT:
;  ^%LkupTarget%=  The number of the array element where the search
;                    argument was found. Will be zero if not found.
;  ^%LkupStart%=   Parameter is set to null after each use.

;Pre-set parameters for testing (OK to remove)
;^!SetDebug On
;^!Set %LkupSource%=ABC
;^!SetArray %LkupSearch%=ABC;DEF;GHI;JKL;MNO;ABC;DEF;GHI;JKL;MNO
;^!Set %LkupErrMsg%=Yes
;^!Set %LkupStart%=7

;Execute routine
^!Set %LkupTarget%=0
^!Set %LkupX%=1
^!If ^%LkupStart%>0 ^!Set %LkupX%=^%LkupStart%
^!Set %ErrStart%=^%LkupX%
^!Set %LkupStart%=^%Empty%

:LkupLoop
^!If ^%LkupSearch^%LkupX%%=^%LkupSource% Next Else Skip_2
^!Set %LkupTarget%=^%LkupX%
^!Goto End
^!Inc %LkupX%
^!If ^%LkupX%>^%LkupSearch0% Next Else LkupLoop

;Show error message
^!IfFalse ^%LkupErrMsg% End Else Next
^!Continue Search argument:^%NL%^%LkupSource%^%NL%not found in
array:^%NL%^%LkupSearch%^%NL%Using start position: ^%ErrStart%^%NL%^%
NL%Click OK to continue in debug mode.
^!SetDebug On

#10632 From: "Dick Gascoigne" <dick.gascoigne@...>
Date: Wed Jul 2, 2003 11:04 am
Subject: Hex to Alpha conversion clip
bobbit_singa...
Send Email Send Email
 
I've written a simple clip to take characters represented as hex values, and
build the corresponding AlphaNumeric representation.  If it fits what anyone
needs, you're welcome to it.

The problem was that I need to interpret PCL (PrinterControlLanguage) files,
which are captured by a "print to file" process. I view the resulting .prn
file with HexEdit or similar.

However, the hex and ASCII views in HexEdit are difficult to interpret, and
all the control characters show up as just a dot.

Now I can copy/paste a section of the file from HexEdit, and have NoteTab
convert the .prn file from
0x1b,0x25,0x2d,0x31,0x32,0x33,0x34,0x35,0x58,0x40
to something like

ESC%-12345X
@PJLSPEOJCR LF

(Beleive it or not, that is an improvement :-)  )
Let me know if you'd like a copy.

Dick Gascoigne
Singapore

#10633 From: "scheidrp" <scheidrp@...>
Date: Fri Jul 4, 2003 5:00 am
Subject: Help the old newbie, please!
scheidrp
Send Email Send Email
 
Having lurked on the Notetab and the Clips groups for some time now,
I finally unashamedly (my spouse always says I have no shame) ask
for a whole lot of help. I probably rank right up there with the
oldest newbies in either group, and as they say, you can't teach an
old dog new tricks, however I'm still trying.  The only thing I know
with any degree of certainty is Notetab and the very apparent
collective level of expertise in this group should make short work
of my problem.

Using Notetab and an equally awesome freeware image viewer and
editor named Irfanview I hope to speed up the scanning process in
use at the museum at which I am a volunteer.  Due to budget
restraints, these scanners are usually bottom of the line units.
The museum library has the almost overwhelming task of scanning 1.4
million photos before they literally fall apart. (A lot of them date
back to the early 1900s.) The majority of this work is being done by
volunteers, some of whom bring a great deal of enthusiasm to the
task and not a whole lot more.  I would  love to "automate" the
process to a degree so as to save time and take some of the drudgery
out of it as well. If I could get a kickstart from the group it sure
would be mightily appreciated.

The photos are scanned to JPEG files at 300 dpi.  Most are
greyscale, but it would be nice to be presented with the options
color, line drawing, greyscale.  I hate to say this but I think
you'd have to get a copy of Irfanview to see how it might be used
with Notetab.  Google Irfanview, and be amazed how small the app is.

I sure hope the sheer length of this hasn't turned you all off. :)
Any questions you may have will be given my best effort.

Thanks in advance, everyone!

RP

#10634 From: "hugo_paulissen" <H.Paulissen@...>
Date: Fri Jul 4, 2003 12:08 pm
Subject: Re: Help the old newbie, please!
hugo_paulissen
Send Email Send Email
 
Hi RP,

That sure is a hell of a job ;-).

I don't know exactly how you plan to automate this scanning process
with NoteTab, so maybe you could give some details on that. The
biggest problem probably is the naming of the individual files.

You are aware of the batch scanning process of IrfanView? This scans
a whole lot of images in sequence, and gives the scanned images a
name with an ascending number. After a series of scans you could try
to rename the images and categorize them according to your wishes
(you might want to keep track of everything scanned in a list...).

It all comes down to the organization of the complete scanning
process... And at this moment I do not know exactly how NoteTab could
help you with that - but it seems that you have ideas on that.

Hugo

#10635 From: John Parsons <john.parsonsja@...>
Date: Fri Jul 4, 2003 12:16 pm
Subject: Re: [Clip] Re: Help the old newbie, please!
snipsj
Send Email Send Email
 
hugo_paulissen wrote:

>Hi RP,
>
>That sure is a hell of a job ;-).
>
>I don't know exactly how you plan to automate this scanning process
>with NoteTab, so maybe you could give some details on that. The
>biggest problem probably is the naming of the individual files.
>
>You are aware of the batch scanning process of IrfanView? This scans
>a whole lot of images in sequence, and gives the scanned images a
>name with an ascending number. After a series of scans you could try
>to rename the images and categorize them according to your wishes
>(you might want to keep track of everything scanned in a list...).
>
The only problem being that Irfanview only supports batch scanning if
the scanner does... and as RP said they were using cheep scanners that
seems unlikely!

John

#10636 From: Julie <gleits@...>
Date: Fri Jul 4, 2003 12:50 pm
Subject: Date math
readingril
Send Email Send Email
 
Is there a clip function that can do "date math", for lack of a better word
for it? Say I wanted to generate a list of Fridays and their dates for the
next year for a schedule. Can that be accomplished in a clip? I know I can
do this in a Calendar type program, just wondering if it could be done in NTP.

thanks,
Julie

#10637 From: Larry Thomas <larryt@...>
Date: Fri Jul 4, 2003 1:07 pm
Subject: Re: [Clip] Date math
back3home2003
Send Email Send Email
 
At 08:50 AM 7/4/03 -0400, you wrote:
>Is there a clip function that can do "date math", for lack of a better word
>for it? Say I wanted to generate a list of Fridays and their dates for the
>next year for a schedule. Can that be accomplished in a clip? I know I can
>do this in a Calendar type program, just wondering if it could be done in
NTP.
>
>thanks,
>Julie

Hi Julie,

I would think that you should have to find a known date that falls on
Friday.  Then set up variables with the number of days in each month
through the next year.  Then have the clip cycle through the year adding
seven days at a time to the date in each loop and decrementing the month
until there were not seven days in it and then adding the left over days in
that month to the next month and changing the month to the next month and
adding seven days to the date again while decrementing the new month.  If
you did something like that, you should be able to figure your schedule for
the next year.  You could probably use wizards to get the beginning date,
the day of the week, the number of days left in the current month, the days
in February, and the current year.  Then write your clip to calculate the
date from these facts.

Have a happy fourth.

Regards,

Larry
lrt@... e¿ê

Lead me not into temptation, I can find it myself.

From a bumper sticker.

#10638 From: "Martyn Folkes" <m.folkes@...>
Date: Fri Jul 4, 2003 1:26 pm
Subject: RE: [Clip] Date math
mfolkes
Send Email Send Email
 
I have a clip that may be of some help, or at least give you some ideas. It
has been well tested and all bugs found so far have been removed. Beware the
long lines. Let me know if you can't get it to work and I will try to help.

Martyn

---clip begins---

;***CalcDate by Martyn Folkes***
;This clip requires %interval% to hold a positive integer representing the
number of days by which to increment or decrement the date. The result will
be returned in %d% (d), %dd% (dd), %m% (m), %mm% (mm), %yy% (yy) and %yyyy%
(yyyy), the month name in %mmmm%, the day name in %day%, the day of the year
(1-365 or 366) in %doy%, the day number (1=Sunday, 2=Monday...) in %dn%, the
day name in %day% and the day suffix (st,nd,rd,th) in %ds%. Also, %leap%
contains 29 if it is a leap year or 28 if it is not a leap year.
;If %startdate% contains a date (ddmmyyyy) the calculation will be from that
date, otherwise, if %startdate% contains 1 or is empty, the calculation will
be from today's date.

^!IfTrue ^%startdate% TODAY
^!IfTrue ^$IsEmpty(^%startdate%)$ TODAY
^!Set %d%=^$StrCopyLeft("^%startdate%";2)$;
%m%=^$StrCopy("^%startdate%";3;2)$; %yyyy%=^$StrCopyRight("^%startdate%";4)$
^!Goto CALCDATE

:TODAY
^!Set %d%=^$GetDate(d)$; %m%=^$GetDate(m)$; %yyyy%=^$GetDate(yyyy)$

:CALCDATE
^!SetArray %array%=0;31;28;31;30;31;30;31;31;30;31;30;31
^!Inc %d% ^%interval%
^!If ^%d% < 1 NEG
^!If ^%m% = 2 FEB
^!If ^%m% = 4 30DAY
^!If ^%m% = 6 30DAY
^!If ^%m% = 9 30DAY
^!If ^%m% = 11 30DAY
^!Goto 31DAY

:NEG
^!Prompt Unable to calculate for this negative number. Try again soon...
^!Goto END

:FEB
;Every year divisible by 4 is a leap year, but years divisible by 100 are
not leap years, except years divisible by 400 which ARE leap years.
^!Set %leap%=28
^!If ^$Calc(^%yyyy%mod4)$=0 ^!Set %leap%=29
^!If ^$Calc(^%yyyy%mod100)$=0 ^!Set %leap%=28
^!If ^$Calc(^%yyyy%mod400)$=0 ^!Set %leap%=29
^!If ^%d% <= ^%leap% ^!Goto YEARCHECK
^!Inc %m%
^!Dec %d% ^%leap%
^!Goto FEB

:30DAY
^!If ^%d% <= 30 ^!Goto YEARCHECK
^!Inc %m%
^!Dec %d% 30
^!Goto 30DAY

:31DAY
^!If ^%d% <= 31 ^!Goto YEARCHECK
^!Inc %m%
^!Dec %d% 31
^!Goto 31DAY

:YEARCHECK
^!If ^%m% >12 NEXT ELSE FINISH
^!Dec %m% 12
^!Inc %yyyy%
^!Goto YEARCHECK

:FINISH
;day of the year
^!If ^%leap%=29 NEXT ELSE SKIP_2
^!SetArray %array%=0;31;60;91;121;152;182;213;244;274;305;335
^!Goto SKIP
^!SetArray %array%=0;31;59;90;120;151;181;212;243;273;304;334
^!Set %doy%=^$Calc(^%array^%m%%+^%d%)$

;month name
^!SetArray
%array%=January;February;March;April;May;June;July;August;September;October;
November;December
^!Set %mmmm%=^%array^%m%%

;day name (I found the algorithm for this at
http://www.tondering.dk/claus/cal/node1.html).
^!SetArray %array%=Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday
^!Set %dna%=^$Calc(INT((14-^%m%)/12))$
^!Set %dny%=^$Calc(^%yyyy%-^%dna%)$
^!Set %dnm%=^$Calc(^%m%+(12*^%dna%)-2)$
^!Set
%dn%=^$Calc((((^%d%)+(^%dny%)+INT(^%dny%/4)-INT(^%dny%/100)+INT(^%dny%/400)+
INT((31*^%dnm%)/12)) MOD 7)+1)$
^!Set %day%=^%array^%dn%%

;day suffix
^!SetArray
%array%=st;nd;rd;th;th;th;th;th;th;th;th;th;th;th;th;th;th;th;th;th;st;nd;rd
;th;th;th;th;th;th;th;st
^!Set %ds%=^%array^%d%%

;2-digit day, month, year
^!Set %dd%=^$StrCopyRight("0^%d%";2)$; %mm%=^$StrCopyRight("0^%m%";2)$;
%yy%=^$StrCopyRight("^%yyyy%";2)$

^!Goto END

---clip ends---

> -----Original Message-----
> From: Julie [mailto:gleits@...]
> Sent: 04 July 2003 13:51
> To: ntb-clips@yahoogroups.com
> Subject: [Clip] Date math
>
>
> Is there a clip function that can do "date math", for lack of a
> better word
> for it? Say I wanted to generate a list of Fridays and their
> dates for the
> next year for a schedule. Can that be accomplished in a clip? I
> know I can
> do this in a Calendar type program, just wondering if it could be
> done in NTP.
>
> thanks,
> Julie
>
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>

#10639 From: "John Zeman" <john041650@...>
Date: Fri Jul 4, 2003 1:36 pm
Subject: Re: Date math
john041650
Send Email Send Email
 
Hey Julie,

In addition to what Larry and Marten suggested you might take a peek
at ntp-clips msg# 6522 posted by Steve Veltkamp who had responded to
somewhat similar question from me a couple years ago.

In that msg he submitted one of the most commonly used clips
(slightly modified for my own needs) I have in my libraries.  You
input any date in short format i.e. 7/2/2003 and it outputs that date
in a long format such as Wednesday, July 04, 2003.

To use his clips split what he posted into two separate clips that
reside in the same library.  The top section being the clip you
actually run, and the DOW section below being a separate stand alone
clip.

John

--- In ntb-clips@yahoogroups.com, Julie <gleits@c...> wrote:
> Is there a clip function that can do "date math", for lack of a
better word
> for it? Say I wanted to generate a list of Fridays and their dates
for the
> next year for a schedule. Can that be accomplished in a clip? I
know I can
> do this in a Calendar type program, just wondering if it could be
done in NTP.
>
> thanks,
> Julie

Messages 10610 - 10639 of 23787   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