PDA

View Full Version : ID_To_Name() ?



dulux-oz
February 8th, 2019, 02:07
Potentially a stupid question:

Is there an existing function in CoreRPG (or the FG API) that will take an Identity and return the Identites Name, or do I need to write my own?

I've looked, but I can't seem to find anything (apart from a note about names in ID structre being depreciated from v3.3.6)

Thankls in advance

Moon Wizard
February 8th, 2019, 02:41
Working from my phone. But I think it’s something like User.getIdentityLabel(identity)

Regards,
JPG

dulux-oz
February 8th, 2019, 05:04
Yeah, I think that's where I saw the depreciation message - its cool, I can wait until you're back in front of a pc - thanks

Moon Wizard
February 8th, 2019, 07:47
Nope, that's the right API (User.getIdentityLabel(identity)). No depreciation message anywhere that I could find.

JPG

dulux-oz
February 8th, 2019, 12:09
Cool - thanks Moon - I must have got the file incorrect

Thanks :)