User Tools

Site Tools


macros:function:math.toenum

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.
namespace Math
parameter assemblyName ( String ) : Name of the assembly.
typeName ( String ) : Fully qualified name of the type.
value ( String ) : The string which an enum is searched for.
return value 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

Trigger - Add MIDi trigger:

Math.ToEnum(“”,“Avolites.Menus.MenuEventTypes”, “OnSelect”)

This returns the enum value which corresponds with the name 'OnSelect', of the MenuEventTypes

Also used in
Remarks
You could leave a comment if you were logged in.
macros/function/math.toenum.txt · Last modified: 2018/09/16 09:45 by icke_siegen