Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coding puzzle 3
Message
From
06/06/2002 00:35:53
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00665235
Message ID:
00665269
Views:
24
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
Previous
Reply
Map
View

Click here to load this message in the networking platform