Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why no Directory() like File()?
Message
 
To
10/12/1999 15:33:06
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00301679
Message ID:
00302051
Views:
37
have a shared-access queue of 'currently waiting' items. I used a !deleted() filter, then simply delete the record after the job is processed. It'll drop from the index, and the grid-view (upon refresh) It is acceptable to have even 500 records deleted and 2 waiting because only 20-50 records come in per day. At some point (in the mornings) someone is going to run the app when noone else does. When this happens the environment setup code can grab and pack the file, just for housecleaning's sake, then return the file to shared use.

Michael,

Why not recycle the deleted records instead? IN your routine that adds the file to the queue just do something like this;
SET DELETED OFF
LOCATE FOR DELETED()
IF FOUND
   RECALL
   SCATTER MEMVAR MEMO BLANK
   GATHER MEMVAR MEMO
ELSE
   APPEND BLANK
ENDIF
SET DELETED ON 
...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform