DefineRecordByRTTI...

Hello,

Delphi 10.2, latest version of Scripter.

I add a record to the Scripter:
atPascalScripter1.DefineRecordByRTTI(TypeInfo(btnWindow));

I can declare a variable of the record and assign values to the fields.
Compiles OK.
Have not tested running yet.

For objects I add, for example:
atPascalScripter1.DefineClassByRTTI(TAlarmResetData);
atPascalScripter1.AddObject('ard',ardHelper);       // var  ardHelper:TAlarmResetData;

Now in the IDE type ard. the properties selection popup menu appears.

What do I need for the record fields to appear in the IDE popup menu?

Thanks,

Mark

Hello Drake,

Unfortunately code completion is not available for records, just classes.
Thanks