Table of Content
HAL Forum
procedure SetWindowNameArg (
integer WinId,string NewValue)
Description:
Sets the value of a string variable that is related to a specified window. Used for multiple purposes (eg. note the example below).
Parameters:
WinId Number of the target window
NewValue New value for the string that is related to that window
global
function Boolean IntORDClassSwitchRow(Integer wn,Integer rownr)
begin        
  record IntORVc IntORr;  
  row IntORVc IntORrw; 
  Integer rwcnt;
  Boolean res;
  val unitprdisc;
  string 255 recepy;
  
  res = true;
  GetWindowRecord(wn,IntORr);
  rwcnt = MatRowCnt(IntORr);  
  if ((rownr<rwcnt) and (rownr>=0)) then begin
    MatRowGet(IntORr,rownr,IntORrw);
    unitprdisc = IntORrw.Sum/IntORrw.Quant;
    unitprdisc = Round(unitprdisc,DefaultRoundMode);
    recepy = IntORrw.Recepy;

    SendArtStat(IntORrw.ArtCode,IntORr.Location,recepy,0,0,unitprdisc,IntORr.TransDate,0);
    SetWindowNameArg(wn,IntORrw.ArtCode & ":" & IntORr.Location);
  end;
  IntORDClassSwitchRow = res;  
  return;
end;
Related topics:
««