Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET REPROCESS TO
Message
De
27/12/1998 16:47:00
 
 
À
27/12/1998 05:33:46
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00169741
Message ID:
00170607
Vues:
36
>
>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??
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform