Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine relative record position
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00149770
Message ID:
00149814
Vues:
23
>Assuming that lnStart and lnEnd contain the RecNo() of the first and last record of the range respectively.
>
>GOTO lnStart
>
>DO WHILE NOT EOF() AND (RecNo() <> lnEnd)
>   DELETE
>   SKIP
>ENDDO
>
>
>HTH
>
>>I'm selecting two records in a table so I can copy or delete all the records between each of the selected record. My problem comes when the table is indexed. Is there a way to do this? I'm having a problem determining if the second record is before or after the first record. I'm using 5.0a. TIA


The problem is knowing if lnStart or lnEnd comes first when you have an index active. Cetin Basoz gave me a routine. Thanks for the help...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform