Tag: convert enum
-
Convert String to Enum using Delphi Prism
Read the article: Convert String to Enum using Delphi PrismTo convert a string in a Enum type, you can use the Enum.Parse function. See this example [sourcecode language=”delphi”] type Language = (Delphi,Delphi_Prism,CBuilder); var aLanguage : Language := Language(Enum.Parse(typeof(Language), ‘Delphi’,…
