Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Random records
Message
De
27/12/2004 04:12:26
 
 
À
27/12/2004 01:59:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00972179
Message ID:
00972271
Vues:
14
you have not copied this line correctly
COPY TO moh111 NEXT &total
>hi,
>thank you for reply,
>i try to run the code as under but i get all records from moh22 to moh111
>as copy file to another file.
>mytable have ex ..55220 record, i want to replace at moh111 ex...778 ...records randomly.
>
>USE moh11
>total = ALLTRIM(thisform.text1.text)
>RAND(-1)
>INDEX ON RAND() TO SYS(2023)+'\RANDOM'
>COPY TO moh111 NEXT total
>SET INDEX TO
>ERASE SYS(2023)+'\RANDOM'
>
>thanks.
>m.qasem
>
>>>hi all,
>>>i want to insert to mynewtable total of records randomly
>>>as
>>>thisform.text1.value=778
>>>my code under copy this records but not randomly
>>>any idea.
>>>
>>>USE moh11
>>>COPY TO newmoh111 NEXT  (thisform.text1.value)
>>>
>>>thanks.
>>>m.qasem
>>
>>
>>USE moh11
>>total = ALLTRIM(thisform.text1.text)
>>RAND(-1)
>>INDEX ON RAND() TO SYS(2023)+'\RANDOM'
>>COPY TO \SELECTION NEXT &total
>>SET INDEX TO
>>ERASE SYS(2023)+'\RANDOM'
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform