Table of Content
HAL Forum
function boolean SetFieldValueByName (
record AnyRecord,string FieldName,string NewValue,integer Row)
Description:
Sets the value of specified field for any record.
Parameters:
AnyRecord The record that has a field with specific name
FieldName Name of the field
NewValue New value for the field
Row Matrix row number (if the field is inside the record matrix). Should be -1 when setting value for normal record field.
global
procedure OnApplicationStartup() 
begin
  record IVVc IVr;

  SetFieldValueByName(IVr,"SalesMan","SJ",-1);  

  stopalert(IVr.SalesMan);

  return;
end;
Related topics:
««