Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need a a better way to do this
Message
De
04/02/2005 13:00:10
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00983858
Message ID:
00983946
Vues:
22
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
>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform