>update resh ; > set ... > where id in ( select id from localtable ) >>
>>** Get the alias of the local table >>cAlias = ALIAS() >> >>** Set the index of the network table >>SET ORDER TO Id IN Resh >> >>** Loop once for each local record >>SELECT (cAlias) >>SCAN >> >> ** Locate the network record >> SELECT Resh >> =SEEK(&cAlias..Id) >> >> ** Store the batch id and user name to the network record >> REPLACE IN Resh BatchNo WITH .nBatchNo,; >> Used_By WITH oApp.cUserId; >> NEXT 1 >> >>ENDSCAN >>>>