cancel
Showing results for 
Search instead for 
Did you mean: 

Has copyRecord been deprecated?

Former Member
0 Kudos

I've upgraded to ESP 5.1 SP04 PL03 on the server side of things (but not my Studio on Windows) and am getting messages about copyRecord having been deprecated.  I understand these are likely warnings, as my project still compiles, runs and does what I want it to do.  However, I've struggled to find a replacement for this function going forward?


What should I use, going forward, to make a copy of a SPLASH record (not a copy of the variable) if copyRecord is deprecated?


Thanks,


Michael

Accepted Solutions (1)

Accepted Solutions (1)

former_member217348
Participant
0 Kudos

Hi Michael,

This error message is, as you suspected, just a warning.

The replacement for this is to use the assignment operator. You can assign a record to another record, for example:

rec2 := rec1;

Making a copy of the variable is the same as making a copy of the record.

I've created 2 change requests, one to modify the error message and the other to clarify the documentation.

CR 774878 - copyRecord function is deprecated - make changes to error message 161298

CR 774880 - copyRecord function is deprecated - make changes to documentation

Thanks,

Alice

Former Member
0 Kudos

That makes sense....fixing the documentation, that is.

Thanks for the help.  Greatly appreciated.

Michael

Answers (0)