Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coding puzzle 3
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00665235
Message ID:
00665269
Vues:
23
Not necessarily the most elegant, but has worked for me many times.
SELECT TABLEA
CALCULATE MAX(FIELD1) TO lnMax
DIMENSION aNumbers(lnMax, 2)
STORE TABLEA.FIELD1 TO aNumbers
COPY STRUCTURE TO TABLEB
SELECT 0
USE TABLEB
APPEND FROM ARRAY aNumbers
REPLACE ALL FIELD1 WITH RECNO()
SELECT * FROM TABLEB WHERE FIELD1 NOT IN (SELECT FIELD1 FROM TABLEA)
- Craig

"If you're not prepared to be wrong, you will never come up with anything original."
- Sir Ken Robinson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform