Explanation

Re: I have a problem in my pick loop -- Carol James CMT
Posted by Emmanuel ® , 04/27/2011, 01:38:14 Reply Top Forum

Hi Carol,

I am so happy to see that finally somebody tried this! :-) You made a few errors in your first try which is normal, but you will see that they are very simple to correct:


I made this command:

{command}{Ctrl F7}{PickList}back1{/PickList}{NoSpacing}

Here it is subtle, but the NoSpacing command has to be before the PickList command:

{command}{Ctrl F7}{NoSpacing}{PickList}back1{/PickList}

Explanation:

In a glossary entry everything after a:

  • Stop command

  • PickList or QuickPick command

  • is considered as a remainder that will potentially be expanded later:

  • Either upon using the Resume command

  • Or automatically upon picking a pick list item
  • Hence, in your example, if you put the NoSpacing command after the PickList command you will miss it because it is in the remainder part of your entry.


    Here is my Pick List entry:
    Short form:        back1
    Long form:        {command}{Ctrl F7}{NoSpacing}
    Display form:       Back one word

    My short is aa to start the ball rolling.

    I like your expression "start the ball rolling".
    And the idea here is that you need a trick to "continue rolling the ball" :-).
    The trick is to have the Pick List entry call itself! Hence you need to correct your long form into:

    {command}{Ctrl F7}{NoSpacing}{PickList}back1{/PickList}

    You notice that the two entries, the one in your commands glossary and the one in your pick list glossary, have indeed identical long forms.

    Once you will succeed with this example you will see that all Pick loops you can implement are constructed the same way.

    Kind regards,
    Emmanuel




    Edit | Reply | Where? | | Original Message | Top | Current page | Author
    Followups