Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
V6s5 - How to make Parameterized Views return all record
Message
From
19/03/2004 11:40:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00886996
Message ID:
00887949
Views:
19
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Cetin
>
>Sorry for replying late as I was out of town. Thanks for the idea.
>
>>If ansi is off :
>>myField = ?cValue && would return all for m.cValue = ''
>
>I had no real experience with characters and I keep ANSI default ie. OFF
>
>>between ?nVal1 and ?nVal2
>
>Actually the requirement arose from numeric
>
>>and put possible lowest/highest values for all.
>
>but do I have to type in these nos. (from the help)
>-2147483647 to 2147483647 or there is some shortcut to simulate these numbers something like GOMONTH(DATE(), 1) - 1

What I do is something like this :

m.lnMin = iif(empty(m.tnID),0,m.tnID)
m.lnMax = iif(empty(m.tnID),0x7FFFFFFF,m.tnID)

and query looks like :
.... myID between ?m.lnMin and ?m.lnMax

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform