Содержание
Record.ItemExists(Name : String) : Boolean
Элемент существует
Метод Record.ItemExists возвращает True, если элемент с таким именем существует.
Пример с динамической записью.
Procedure OnCreate;
var
  R : Record;
Begin        
  R.A := 'Hello';
  R.B := 'World';
  R.C := '!';
  
  if R.ItemExists('A') Then Warning('A exists');
  if R.ItemExists('D') Then Warning('D exists');
End;
 | 
void OnCreate() {
  Record R;
  
  R.A = "Hello";
  R.B = "World";
  R.C = "!";
  
  if(R.ItemExists("A")) Warning("A exists");
  if(R.ItemExists("D")) Warning("D exists");
}
 | 
Пример со статической записью. В статическую запись нельзя добавлять новые элементы и изменять тип существующих.
Type
  MyRecord = Record 
    A, B, C : String; 
  End;
  
Procedure OnCreate;
Var
  R : MyRecord;
  I : Integer;
Begin
  R.A := 'Hello';
  R.B := 'World';
  R.C := '!';
  
  if R.ItemExists('A') Then Warning('A exists');
  if R.ItemExists('D') Then Warning('D exists');
End;
 | 
struct MyRecord {
  string a, b, c;
};
  
void OnCreate() {
  MyRecord r;
  int i;
  R.A = "Hello";
  R.B = "World";
  R.C = "!";
  if(R.ItemExists("A")) Warning("A exists");
  if(R.ItemExists("D")) Warning("D exists");
}
 | 
Смотри Record.Item
  справка