Table of Content
HAL Forum
function string GetFieldValueByName (
record rec,string field_name,integer row_nr)
Description:
Reads record field value by it's name
Parameters:
rec Record
field_name Name of the field
row_nr Row number (-1 if field is not an ArrayField)
function string 255 GetFieldValueByName_FromINVc(string code, string field, integer rownr)
begin
  string 255 res;
  record INVc INr;
  
  INr.Code = code;
  if (ReadFirstMain(INr, 1, true)) then begin
    res = GetFieldValueByName(INr, field, rownr);
  end; 
  GetFieldValueByName_FromINVc = res;
  return;
end;
Related topics:
««