Table of Content
HAL Forum
function boolean ReadMarkedRecord (
integer WindowId,var record RListRecord)
Description:
Returns the selected record (defined by UseView) from record browse window (CGmlist, CGslist). Returns FALSE if reading failed (wrong window, wrong record type, no line selected, etc).
Parameters:
WindowId The window from where to retrieve the selected record.
RListRecord The record variable that holds the values of the selected record. The type of the record should be the same for both the record list window (UseView) and for the variable, that is passed to this function.
global
function Boolean IN2SClassSwitchRow(Integer wn,Integer rownr)
BEGIN
  record INVc INr;
  val t,tproc,unitprdisc;
  Date td;

  if (FindWindow("ArtStatIClass")!=0) then begin
    if (ReadMarkedRecord(wn,INr)) then begin
      SendArtStat(INr.Code,"",INr.Recepy,t,tproc,unitprdisc,td,0);
    end;
  end;
  IN2SClassSwitchRow = true;
  RETURN;
END;
Related topics:
««