Jump to content
Ian Branch

"Use overloaded method instead"

Recommended Posts

Hi Team,

D10.3.

I have the following line of code..

[code}

 Result := inherited GetFieldData(Field, Buffer, NativeFormat);

{code}

Against this line in Build mode I get the following..

"W1000 Symbol 'GetFieldData' is deprecated: 'Use overloaded method instead'"

I have had a look at the relevant help and I don't understand what it wants me to change/'use'.

It is only a warning however I would like to clean it up anyway.

 

Ian

 

 

Share this post


Link to post

There are multiple, overloaded declarations of this method. They differ in the number and/or types of parameters. The one you are calling has been marked as deprecated, which means that it will be removed in a future version. Check out the others, one of them is probably suitable to replace the one you are calling.

Share this post


Link to post
2 hours ago, Ian Branch said:

[code}

 Result := inherited GetFieldData(Field, Buffer, NativeFormat);

{code}

Ah Ha!  Turned out I had to change 'Buffer: Pointer' definition a little further back to 'Buffer: TValueBuffer'

All good now.

Tks.

Ian

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

×