Table of Content
HAL Forum
function LongInt SynchroniseRegister (
string regcode,integer frcomp,integer tocomp,longint seqnr,string tagstr)
Description:
Sychronizes a specific register from the machine it is called to the opposite side. If called on client - sends records to server and vice versa. Returns the sequence number of last record synchronized
Parameters:
regcode Register which should be synchronized
frcomp Company from which records are read
tocomp Company into which the records are stored
seqnr Sequence number
tagstr A string parameter that is given to synchronization record actions
global
updating procedure SynchOfflineToServsm()
BEGIN
  record IVCashVc IVCashr;

  LongInt seqnr;
  Integer offlinecomp,servcomp;

  offlinecomp = 2;
  servcomp = CurrentCompany;
  BeginSync;
  seqnr = SynchroniseRegister("IVCashVc",offlinecomp,servcomp,-1,"");
  EndSync;
  
  RETURN;
END;
Related topics:
««