Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET REPROCESS TO
Message
From
27/12/1998 16:47:00
 
 
To
27/12/1998 05:33:46
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00169741
Message ID:
00170607
Views:
35
>
>In this layout, it really makes sense. When I think further, it's just a very smart strategy. I'm just wondering how do you find a random deleted record? I guess it's something like
>Set Order to Deleted
>Seek .t.
>count next rand()*100 while deleted()
>if deleted()
> do your_thing
>...etc
>
>Or you've come up with something better?
>
Hi Dragan,
How about something like...
x= INT(RAND()*RECCOUNT()) + 1
GO x
LOCATE REST FOR DELETED()
IF ! FOUND()
   LOCATE FOR DELETED()
ENDIF
might be a little faster??
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform