Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
V6s5 - How to make Parameterized Views return all record
Message
From
20/03/2004 08:17:25
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:
00888190
Views:
18
>Hi
>
>>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
>
>Thanks a lot.
>
>Just curious, I am not a Hex guy, how would you represent the same no above as negative in Hex, just a minus sign?

Yes. In signed integer for negative values the uppermost bit is set : So it'd be :
-(0x7FFFFFFF+1)
or:
-0x80000000
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