Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need Scan..EndScan code help
Message
From
11/12/1998 18:19:58
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00166652
Message ID:
00166811
Views:
19
Brenda,
If this is the second message, please disregard. I was previewing my last response, and I don't know if it sent it or not.
Check out the SQL Update function. It allows you to set values from one table to another very quickly. You can't use an INNER JOIN, as you can in VB, but you can substitute a SEEK() function in it's place.

It would look like this :

UPDATE table1 ;
SET table1.value = table2.value ;
WHERE SEEK(table1.ID, 'table2', 'table2.index expression')
You add any values to the SET statement, as in any SQL statement. It is very fast. Also, if you don't set the index, and it exists, FoxPro will use the index quoted. If you don't add the index expression, it will use the current index.

Brad
Previous
Reply
Map
View

Click here to load this message in the networking platform