Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subject: set skip to bar problem FPD25
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00524164
Message ID:
00525605
Vues:
13
This message has been marked as the solution to the initial question of the thread.
>Ive tried you suggesstions, it works but does not work.
>
>The Popup came up Disabled but as soon as I move the arrow the disbalment went away and was selectable. I havent tried any thing more than what youd suggested but I want to try removing the &zskip and etc. Let you know more if I find anything.
>
>Let me know if you have any ideas.
>
>Thanks once again for helping me. It was really helpful.

I did some tests and confirm that SET SKIP doesn't work properly with DEFINE POPUP ... FIELD

It works for DEFINE BAR ... SKIP FOR as shown in sample code below
 DEFINE POPUP helppopup ;
 MARGIN ;
 COLOR SCHEME 4

 SELECT expand
 m.zi=1
 SCAN
     m.zskip = IIF( EVAL(zfiltstr), ".T.", ".F.")
     DEFINE BAR m.zi OF helppopup Prompt key SKIP FOR &zskip
     m.zi = m.zi + 1
 ENDSCAN
This way you can make your popup even more user friendly by not showing desabled items.
 m.zi=1
 SCAN
     IF NOT EVAL(zfiltstr)
         DEFINE BAR m.zi OF helppopup Prompt key 
     ENDIF
     m.zi = m.zi + 1
 ENDSCAN
The other idea is to use SQL select to create a cursor with only options that user have rights to and than use it in DEFINE POPUP ... FIELD
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform