при написании своего движка для БД, столкнулся с следующей трудностью-оказывается подобным образом нельзя указать имя записи.
например код:
Код: Выделить всё
type
TShape = (tablica, pole, stroka, yacheyka, spisok);
zapisBYF = record
name : shortstring;
case _variant : TShape of
tablica : (_t : record
indexVpole, dlina, shirina : word; razmer : word
end);
pole : (_p : record
razmer : word
end);
stroka : (_s : record
indexVpole : word
end);
yacheyka : (_y : record
indexVpole : word;
kratcoeOpisanie : shortstring
end);
spisok : (_k : record
indexVpole, razmer : word
end);
end;где обращения к полю нужно делать так:
Код: Выделить всё
rec._k.indexVpoleКод: Выделить всё
rec.переменная_имени_записи.indexVpole