Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot Quit Visual Foxpro
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00201951
Message ID:
00202308
Views:
22
>>Another, more serious, use would be to trigger the equivalent of a PACK when greater than a certain # or certain % of all records were DELETED().
>>
>>
LOCAL nDeletedCount
>>Select (cSomeAlias)
>>COUNT TO nDeletedCount FOR DELETED()
>>IF nDeletedCount > nSomeTriggerValue
>>   *  TIme to PACK the donuts...
>
>That's a pretty good idea -- I don't have immediate use for it, but I'll file it away for future reference...the percent idea makes the better sense, I think.

Just substitute (nDeletedCount/RECCOUNT(cSomeAlias)) and use a value between 0 and 1 for nSomeTriggerValue - given who you work for, I think you could work it out for yourself, though!
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