User Tools

Site Tools


macros:function:math.toenum

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

macros:function:math.toenum [2018/09/16 11:45] (current)
icke_siegen created
Line 1: Line 1:
 +Function
  
 +====== Math.ToEnum ======
 +
 +  Enum Math.ToEnum(String assemblyName,​ String typeName, String value)
 +
 +^ API | http://​api.avolites.com/​11.0/​Math.ToEnum.html |
 +^ description | Converts a string to an enum. |
 +^ [[macros:​namespace|namespace]] | [[macros:​namespace:​math]] |
 +^ parameter | assemblyName ( [[macros:​type:​string]] ) : Name of the assembly. |
 +^ ::: | typeName ( [[macros:​type:​string]] ) : Fully qualified name of the type. |
 +^ ::: | value ( [[macros:​type:​string]] ) : The string which an enum is searched for. |
 +^ return value | [[macros:​type:​enum]] |  ​
 +
 +An assembly is kind of a building block of the Titan program - see https://​docs.microsoft.com/​en-us/​dotnet/​framework/​app-domains/​assemblies-in-the-common-language-runtime
 +
 +== Example in == 
 +[[macros:​example:​addmiditrigger]]: ​
 +
 +<code xml>
 +Math.ToEnum(“”,​“Avolites.Menus.MenuEventTypes”,​ “OnSelect”)
 +</​code>​
 +
 +This returns the enum value which corresponds with the name '​OnSelect',​ of the [[macros:​identifier:​menueventtypes]]
 +
 +== Also used in ==
 +
 +{{backlinks>​.}}
 +
 +== Remarks ==
 +
 +~~DISCUSSION~~
macros/function/math.toenum.txt · Last modified: 2018/09/16 11:45 by icke_siegen