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

Re: [Clip] Help with Note Tab

Expand Messages
  • Don Passenger
    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
    Message 1 of 59 , Jul 1, 2003
    • 0 Attachment
      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/
      >
      >
      >
    • Larry Thomas
      Hi Kevin, I was just playing around and I reduced the number of lines in the original clip from 30 to 22. And it still works fine. ^!Set %Counter%=^?[Repeat
      Message 59 of 59 , Mar 4, 2004
      • 0 Attachment
        Hi Kevin,

        I was just playing around and I reduced the number of lines in the original
        clip from 30 to 22. And it still works fine.

        ^!Set %Counter%=^?[Repeat count]
        :Start
        ^!If ^%Counter% < 1 End
        ^!Dec Counter
        ^!Set %num2%="^$StrRandom(1;1..3)$"
        ^!If "^%num2%" = "1" Next ELSE Skip
        ^!Set %6%="Mein"; %7%="My"
        ^!If "^%num2%" = "2" Next ELSE Skip
        ^!Set %6%="Elf"; %7%="Eleven"; %8%="11"
        ^!If "^%num2%" = "3" Next ELSE Skip
        ^!Set %6%="Jung"; %7%="Young"
        ^!Set %num1%="^?{^%6%}"
        ^!IfSame "^%num1%" "^%7%" Correct
        ^!IfSame "^%num1%" "^%8%" Correct2

        ^!Keyboard #Sorry ^%7% ^%6%# Enter
        ^!Goto Start
        :Correct
        ^!Keyboard #Correct ^%7% ^%6%# Enter
        ^!Goto Start
        :Correct2
        ^!Keyboard #Correct ^%8% ^%6%# Enter
        ^!Goto Start

        Regards,

        Larry
        lrt@... e¿ê
      Your message has been successfully submitted and would be delivered to recipients shortly.