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

Wizard question?

Expand Messages
  • Harvey R. Savage
    Hi Jody - or anyone else, I m trying to use characters such as, [, ], {, }, (, ) as multiple choices in a wizard, no luck yet. Can this be done, has it been
    Message 1 of 6 , Jan 10 6:11 AM
      Hi Jody - or anyone else,

      I'm trying to use characters such as, [, ], {, }, (, ) as
      multiple choices in a wizard, no luck yet.

      Can this be done, has it been discussed in any of the groups, is
      there anything about this in the help file?

      All help appreciated.

      hrs
    • Jody
      Hi Harvey, ... You cannot use the brackets and braces. They are pert of the wizard code and there is not a way to escape them. That is not to say there are
      Message 2 of 6 , Jan 10 3:47 PM
        Hi Harvey,

        >I'm trying to use characters such as, [, ], {, }, (, ) as
        >multiple choices in a wizard, no luck yet.

        You cannot use the brackets and braces. They are pert of the
        wizard code and there is not a way to escape them. That is not
        to say there are not workarounds though to use them depending on
        what is picked in the wizard. To the best of my knowledge, I
        remember using parenthesis.

        Happy Clip'n!
        Jody

        http://www.notetab.net

        Subscribe, UnSubscribe, Options
        mailto:Ntb-Clips-Subscribe@...
        mailto:Ntb-Clips-UnSubscribe@...
        http://www.egroups.com/group/ntb-clips
      • Stephen Riddle
        Hi Harvey and Jody, I Guess this is a workaround: ;*************BeginClip H= Choose Characters ;begin one realllllly long line ^!Set %char%=^?{(T=L)Please
        Message 3 of 6 , Jan 10 6:33 PM
          Hi Harvey and Jody,
          I Guess this is a workaround:

          ;*************BeginClip
          H="Choose Characters"
          ;begin one realllllly long line
          ^!Set %char%=^?{(T=L)Please Pick Your
          Character=^$DecToChar(33)$|^$DecToChar(34)$|^$DecToChar(35)$|^$DecToChar(36)$|^$DecToChar(27)$|^$DecToChar(38)$|^$DecToChar(39)$|^$DecToChar(40)$|^$DecToChar(41)$|^$DecToChar(42)$|^$DecToChar(43)$|^$DecToChar(44)$|^$DecToChar(45)$|^$DecToChar(46)$|^$DecToChar(47)$|^$DecToChar(58)$|^$DecToChar(59)$|^$DecToChar(60)$|^$DecToChar(61)$|^$DecToChar(62)$|^$DecToChar(63)$|^$DecToChar(64)$|^$DecToChar(91)$|^$DecToChar(92)$|^$DecToChar(93)$|^$DecToChar(94)$|^$DecToChar(95)$|^$DecToChar(96)$|^$DecToChar(123)$|PipeSymbol^=124|^$DecToChar(125)$|^$DecToChar(126)$|^$DecToChar(145)$|^$DecToChar(146)$}

          ;Ok, that was the long line
          ^!IfSame ^%char% 124 NEXT ELSE SKIP
          ^!Set %char%=^$DecToChar(124)$
          ^%char%
          ;************EndClip

          I could not get the PipeSymbol to display in the clip, as the Wizard
          kept interpreting it, but with the workaround,
          if you select the words PipeSymbol, you get it. For some reason, I had
          no problems with the other characters.
          Take Care,
          Stephen

          Jody wrote:

          > Hi Harvey,
          >
          > >I'm trying to use characters such as, [, ], {, }, (, ) as
          > >multiple choices in a wizard, no luck yet.
          >
          > You cannot use the brackets and braces. They are pert of the
          > wizard code and there is not a way to escape them.
        • Jody
          Hi Stephen, Thanks Steve! I figured there was a way... The pipe, vertical bar, as you know is used as the delimiter to separate the items so it is
          Message 4 of 6 , Jan 10 6:41 PM
            Hi Stephen,

            Thanks Steve! I figured there was a way... The pipe, vertical
            bar, as you know is used as the delimiter to separate the items
            so it is understandable that you could not get it to work.

            ;*************BeginClip
            H="Choose Characters"
            ; Stephen Riddle
            ;begin one realllllly long line
            ^!Set %char%=^?{(T=L)Please Pick Your Character=^$DecToChar(33)$|^$DecToChar(34)$|^$DecToChar(35)$|^$DecToChar(36)$|^$DecToChar(27)$|^$DecToChar(38)$|^$DecToChar(39)$|^$DecToChar(40)$|^$DecToChar(41)$|^$DecToChar(42)$|^$DecToChar(43)$|^$DecToChar(44)$|^$DecToChar(45)$|^$DecToChar(46)$|^$DecToChar(47)$|^$DecToChar(58)$|^$DecToChar(59)$|^$DecToChar(60)$|^$DecToChar(61)$|^$DecToChar(62)$|^$DecToChar(63)$|^$DecToChar(64)$|^$DecToChar(91)$|^$DecToChar(92)$|^$DecToChar(93)$|^$DecToChar(94)$|^$DecToChar(95)$|^$DecToChar(96)$|^$DecToChar(123)$|PipeSymbol^=124|^$DecToChar(125)$|^$DecToChar(126)$|^$DecToChar(145)$|^$DecToChar(146)$}

            ;Ok, that was the long line
            ^!IfSame ^%char% 124 NEXT ELSE SKIP
            ^!Set %char%=^$DecToChar(124)$
            ^%char%
            ;************EndClip

            I could not get the PipeSymbol to display in the clip, as the Wizard
            kept interpreting it, but with the workaround,
            if you select the words PipeSymbol, you get it. For some reason, I had
            no problems with the other characters.

            Happy Clip'n!
            Jody

            http://www.notetab.net

            Subscribe, UnSubscribe, Options
            mailto:Ntb-Clips-Subscribe@...
            mailto:Ntb-Clips-UnSubscribe@...
            http://www.egroups.com/group/ntb-clips
          • Jody
            Hi Stephen, FYI, in a certain Clip I use often to reorder fields in a tab delimited document I have to put the delimiter in a variable for some reason when it
            Message 5 of 6 , Jan 10 9:10 PM
              Hi Stephen,

              FYI, in a certain Clip I use often to reorder fields in a tab
              delimited document I have to put the delimiter in a variable for
              some reason when it is a tab or new line. I never asked nor try
              to figure out why. It is a peculiar Clip so I just accepted it
              as the way it is. :-) I tried the preset variables in the
              wizard, but unless I goofed many times it just would not work for
              the Clip. (ReOrder Fields... - NoteBlock). It is actually later
              on in the Clip where the problem was caused.

              ^!IfSame "^%Delimiter%" "^p" Next else Skip
              ^!Set %Delimiter%=^%nl%
              ^!IfSame "^%Delimiter%" "^t" Next else Skip
              ^!Set %Delimiter%=^%Tab%

              ^!SetDelimiter ^%Delimiter%
              ...

              >H="Choose Characters"
              >; Stephen Riddle
              >;begin one realllllly long line
              >^!Set %char%=^?{(T=L)Please Pick Your Character=^$DecToChar(33)$|^$DecToChar(34)$|


              Happy Clip'n!
              Jody

              http://www.notetab.net

              Subscribe, UnSubscribe, Options
              mailto:Ntb-Clips-Subscribe@...
              mailto:Ntb-Clips-UnSubscribe@...
              http://www.egroups.com/group/ntb-clips
            • Stephen Riddle
              Hi Jody, Thanks, This is the kind of thing that makes me think scripting is kind of like voodoo. Or you just need to stick your tongue out the proper corner of
              Message 6 of 6 , Jan 11 8:23 PM
                Hi Jody,
                Thanks,
                This is the kind of thing that makes me think scripting is kind of like voodoo. Or you
                just need to stick your tongue out the proper corner of your mouth to get a script to
                work. I first needed the $DecToChar$ when I was trying to re-order some blocks of text
                too and for some reasont the preset variables did not come up. (I think that's what it
                was, it's kind of foggy now.) It has just come in handy once in a while.
                The other day I created a clip to demo for me what all the character references were.
                If any one is interested, here it is:

                ;********begin Clip
                H="Look at $DecToChar()$"
                ^!Set %kaunt%=0
                :loop
                The meaning of DecToChar for ^%kaunt% = ^$DecToChar(^%kaunt%)$^%NL%
                ^!Inc %kaunt%
                ^!If ^%kaunt% > 150 stop ELSE loop
                :stop

                ;********end Clip

                I stopped at 150 more from having to stop somewhere than anything else. I opened up
                the resulting document in WordPad and got a slightly different group of undisplayable
                characters.

                Take Care

                (A big storm just left California headed your way.)
                Stephen


                > I never asked nor try
                > to figure out why. It is a peculiar Clip so I just accepted it
                > as the way it is. :-) I tried the preset variables in the
                > wizard, but unless I goofed many times it just would not work for
                > the Clip. (ReOrder Fields... - NoteBlock). It is actually later
                > on in the Clip where the problem was caused.
                >
                > ^!IfSame "^%Delimiter%" "^p" Next else Skip
                > ^!Set %Delimiter%=^%nl%
                > ^!IfSame "^%Delimiter%" "^t" Next else Skip
                > ^!Set %Delimiter%=^%Tab%
                >
                > ^!SetDelimiter ^%Delimiter%
                > ...
                >
              Your message has been successfully submitted and would be delivered to recipients shortly.