SKIP FOR


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: SKIP FOR

  1. #1
    Henri van Balkom Guest

    SKIP FOR

    Hi, can somebody help me with this one

    To prevent users from entering specific menu-options I added the following
    statement in the 'SKIP FOR' clause:

    IIF(TYPE('m.gcYouAre')='C',checksec(m.gcYouAre,'BPBRTGEN')=6,.F.)

    The generated code from genmenu for that pad was:

    DEFINE PAD _0ig0svyhy OF _MSYSMENU PROMPT "Option" COLOR SCHEME 3 KEY ALT+O,
    "" )

    So, the complete SKIP FOR text is not placed in the .MPR, just a ')'.

    When I replace the '.F. ' WITH '.T.' (or anything else) everything is ok.


    Henri van Balkom



  2. #2
    Barbara Peisch Guest

    Re: SKIP FOR

    You don't need the IIF statement in the skip for, just change it to:

    TYPE('m.gcYouAre')='C' and checksec(m.gcYouAre,'BPBRTGEN')=6

    --


    -BP
    www.peisch.com




  3. #3
    Henri van Balkom Guest

    Re: SKIP FOR

    You are right about that.

    I know that the statement can be rewritten, but genmenu should deal with
    this kind of expressions (syntax) and I believe it is a bug.

    Henri


    "Barbara Peisch" <barbara@peisch.com> wrote in message
    news:3bd6f61a@news.devx.com...
    > You don't need the IIF statement in the skip for, just change it to:
    >
    > TYPE('m.gcYouAre')='C' and checksec(m.gcYouAre,'BPBRTGEN')=6
    >
    > --
    >
    >
    > -BP
    > www.peisch.com
    >
    >
    >




  4. #4
    Tamar E. Granor Guest

    Re: SKIP FOR

    On Thu, 25 Oct 2001 09:14:17 +0200, "Henri van Balkom"
    <hvbalkom@micronet.nl> wrote:

    >You are right about that.
    >
    >I know that the statement can be rewritten, but genmenu should deal with
    >this kind of expressions (syntax) and I believe it is a bug.
    >
    >Henri


    Yes, if this is VFP 7, it is a known bug, having to do with the fact
    that GENMENU has been enhanced to remove expressions of the form SKIP
    FOR .F. (That's because a lot of people sneak extra clauses in using
    SKIP FOR conditions like ".F. OtherClause".)

    However, the code that does this is incorrect. There was a fix for
    GENMENU posted on the Universal Thread.

    Tamar


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center