Hi all,
with the new version of d365fo(10.0.6 pu30) the compiler tell me that the global function enum2symbol is now obsolete and harmful.
which method could i use instead of enum2symbol?
i need to return the name of the enum element.
Thanks.
Nino
The compilation warning goes away by wrapping the enum value with an explicit cast to int:
str sym = enum2Symbol(enumNum(YourEnumHere), enum2int(yourEnumValueHere));
I don't have a PU30 system at hand. But in general in these cases you can check how the standard system is handling these requirements now. So you can use Find references in a pre-PU30 system and see which standard classes use enum2symbol. And then check in PU30 if they have been changed.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156