Recent

Author Topic: convert enum to string and back  (Read 20452 times)

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: convert enum to string and back
« Reply #15 on: October 31, 2015, 06:42:15 am »
@taazz: Since this is based on your code: Would you allow me to add this to bug tracker?
Sure go ahead. I'll be honored to have any piece of code in fpc or lazarus. BUT and its a big but, I have already mentioned it in this thread, why don't you use the functions provided in the unit typinfo named SetToString and StringToSet which does exactly what the name implies? I see nothing here that is not allready covered on those functions.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: convert enum to string and back
« Reply #16 on: October 31, 2015, 11:16:21 am »
I have already mentioned it in this thread, why don't you use the functions provided in the unit typinfo named SetToString and StringToSet which does exactly what the name implies? I see nothing here that is not allready covered on those functions.
Oh, I missed this one. Thanks for pointing this out to me.

 

TinyPortal © 2005-2018