I wanted to use the “FormatSettings” record from SysUtils in a PascalScript. However i am a little bit stuck when i want to add the TFormatSettings type.
Do i have to include the whole record definition when using AddTypeS? What is about the methods that the record contains?
Can you give me an example how to add such more complex types? - Thanks in advance!
However i am not sur if i have to include the class function (there are some of them in that record) too. When i use this record in my code the members of the record are not available:
procedure RunTest;
var
fs: TFormatSettings;
begin
fs := FormatSettings;
WriteLn( 'LongDateFormat = ' + fs.LongDateFormat );
// Results in "Unknown identifier LONAGDATEFOMAT"
end;
Can you give me a hint what is wrong with the registration?