Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Appending record in table when key changes
Message
De
18/11/2005 05:10:28
Jon Neale
Bond International Software
Wootton Bassett, Royaume Uni
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01070099
Message ID:
01070105
Vues:
13
Neil,

Something like this
lckey = ""
lclastkey = ""
scan
lcKey = Table.Mainkey
if lcKey <> lclastkey
** append record
endif
lclastkey = lcKey
endscan

Not tested.

Jon

>I have about 1000 records in a table ordered by the mainkey field. i.e.
>
>
>Mainkey
>---------
>Neil01    Cutting
>Neil02    Costing
>Neil02    Made
>Neil02    Sent
>
>
>everytime the mainkey changes when I scan down the table I want to append a record in another table with the value of mainkey.
>
>How can i do this easily??
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform