Jump to content
Registration disabled at the moment Read more... ×
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×