Access to record file dynamiclly

Hi !
Great community, i got helpfull advices from here.

I got this record:
type info: record
{
}

And variable which his value is the record’s field name:
local field_name: string = ‘a’;

I try to assign value to a field using field_name, maby like this:
local myrec = info();
myrec$field_name = “some value”;

But that command try to find the field “field_name”.

Any suggestion?
John

I don't think there's currently a way to get write-access via dynamic field name. Though dynamic read-access is possible via the record_fields() function.

- Jon