Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Missing operand creating view
Message
 
 
To
09/11/2011 11:58:30
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01528498
Message ID:
01528511
Views:
43
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
Previous
Reply
Map
View

Click here to load this message in the networking platform