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

Re: [Clip] NoteTab to write NC code

Expand Messages
  • Harvey R. Savage
    ... Hey guys, You can concatenate strings (make a compound label of multiple strings) in a ^!Goto command with NoteTab. Just don t have any white space between
    Message 1 of 13 , Jun 24 2:11 PM
    • 0 Attachment
      westerman@... wrote:
      >
      > Is there not an operator that can be used to concatenate two or more
      > variables?
      >
      > In Perl it would be:
      >
      > $a = Note;
      > $b = Tab;
      > $c = $a . $b;
      > print $c; # prints NoteTab
      >
      > Craig ><>
      > westerman@...
      >
      > --- In ntb-clips@y..., "Alan C." <acummings@s...> wrote:
      > > Hi Craig,
      > >
      > > > > > >^!Set %p_DRLL% = ^%p_HNG% ^%p_CBT% ^%p_PLT%
      > > > > >
      > > > > >^!Goto ^%p_DRLL%


      Hey guys,

      You can concatenate strings (make a compound label of multiple
      strings) in a ^!Goto command with NoteTab. Just don't have any
      white space between the multiple strings as above.

      This sample clip demonstrates the concept.

      hrs



      H="goto test"
      ^!Set %parameter1%=parm1
      ^!Set %parameter2%=parm2
      ^!Set %parameter3%=parm3

      ^!Goto ^?{parameter1 parameter2
      parameter3==^%parameter1%|^%parameter1%^%parameter2%|^%parameter1%^%parameter2%^%parameter3%}

      :parm1
      ^!Info ^%parameter1%
      ^!goto end

      :parm1parm2
      ^!Info ^%parameter1%^%parameter2%
      ^!goto end

      :parm1parm2parm3
      ^!Info ^%parameter1%^%parameter2%^%parameter3%
      ^!goto end
    Your message has been successfully submitted and would be delivered to recipients shortly.