Jump to content
dummzeuch

TRegistry: reading and writing REG_MULTI_SZ

Recommended Posts

TRegistry seems to be missing methods to read and write entries of the type REG_MULTI_SZ.

I would expect ...

procedure TRegistry.WriteMultiString(const AName: string; const Values: TStringDynArray);

... and ...

function TRegistry.ReadMultiString(const AName: string): TStringDynArray;

Am I overlooking something?

Share this post


Link to post
Posted (edited)
1 hour ago, dummzeuch said:

Am I overlooking something?

Are you using an older version of Delphi?  ReadMultiString() and WriteMultiString() methods were added in Delphi 12 Athens:

function ReadMultiString(const Name: string): TArray<string>;
procedure WriteMultiString(const Name: string; const Value: TArray<string>);

 

Edited by Remy Lebeau
  • Thanks 1

Share this post


Link to post

OK, that explains it. I was looking at Delphi 10.2.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×