Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a a better way to do this
Message
From
04/02/2005 13:00:10
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00983858
Message ID:
00983946
Views:
23
Hi Kevin

Yes replace respects the relation.

>Not sure whats going on, but when I run this, the app goes
>unresponsive. The locale table has 100 records. The network
>table 350,000 records.

Try inserting a GO TOP as I've done below...

>>
>>
** Set the index of the network table
>>SET ORDER TO Id IN Resh
>>** grab these values to memvars because they're
>>** so much faster than properties.
>>LOCAL lnBatchNo, lcUserID
>>lnBatchNo = .nBatchNo
>>lcUserID = oApp.cUserID
>>
>>** Loop once for each local record
>>SELECT (cAlias)
>>SET RELATION TO ID INTO Resh
>>GO TOP
>>REPLACE ALL ;
>>  BatchNo WITH m.lnBatchNo, ;
>>  Used_By WITH m.lcUserID ;
>>  IN Resh
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform