Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Missing operand creating view
Message
De
09/11/2011 11:58:30
 
 
À
09/11/2011 11:44:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01528498
Message ID:
01528509
Vues:
40
Hi Charles,

The problem is I can't even save the view due to the error, but FYI below is the code in the view parameter container's cmdQuerry.click() setting the value of vp_lfilter which evaluates to a logical.
LOCAL lnLocked
lnLocked = This.Parent.optgrpLocked.value

WITH loBizObj.oCursor.parameters
   DO CASE
      CASE lnLocked = 1  && Unlocked only
         .item("vp_lFilter").value = "lLockOut # .t."
         *.item("vp_lUnlocked").value =  .f.
         *.item("vp_llocked").value   =  .f.
      CASE lnLocked = 2  && Locked only
         .item("vp_lFilter").value = "lLockOut = .t."
         *.item("vp_lUnlocked").value =  .t.
         *.item("vp_llocked").value   =  .t.
      CASE lnLocked = 3  && both Unlocked AND Locked
         .item("vp_lFilter").value = ".t."
         *.item("vp_lUnlocked").value =  .f.
         *.item("vp_llocked").value   =  .t.

   ENDCASE   && lnLocked
ENDWITH      && loBizObj.oCursor.parameters
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform