Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Missing operand creating view
Message
 
 
À
09/11/2011 11:58:30
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:
01528511
Vues:
42
Create your view using
text to lcView textmerge noshow 

   create view ...

    where <<lcWhereFilter>>
endtext

&lcView -- or execscript (lcView)
>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
>
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform