Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filter in View
Message
From
05/12/1998 10:49:56
 
 
To
05/12/1998 10:06:07
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00164430
Message ID:
00164450
Views:
23
>>>I want to set a Filter in View through Which I can either
>>>choose to :-
>>>
>>>1. Select all records
>>>or
>>>2. Select only deleted records
>>>or
>>>3. Select only undeleted Records
>>>
>>>Any suggestions/ideas ??
>>
>>either you add a field to your view
>>SELECT .. DELETED() as lDeleted
>>
>>or you can make this a parameter in your WHERE
>>and REQUERY as needed
>>
>>Arnon
>
>Thanks a Lot for both of your suggestions...
>
>I'll prefer to do it with WHERE Clause... But not able to form it properly...
>
>Can you pls tell me how to do exactly through where clause...

You need to specify which tables records are to be considered for deletion status; in the examples below, substitute your table's alias for cAliasName in the DELETED() function. If only one table is considered in the query, you can omit it.

Make certain to SET DELETED OFF before the query to allow consideration of deleted records in the query result (and to be able to see tuples that contain deleted records in the result!)

For deleted records:

WHERE DELETED(cAliasName)

undeleted records:

WHERE NOT DELETED(cAliasName)

Do not include any reference to DELETED() if both deleted and undeleted records are to be considered.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform