GetResourceString()

Namespace ›› System ›› MfEnvironment ›› Methods ››
Parent Previous Next

GetResourceString()

Overrides MfResourceSingletonBase.GetResourceString()

MfEnvironment.Instance.GetResourceString(key)
MfEnvironment.Instance.GetResourceString(key, arg, arg2, ..., argN)

GetResourceString(key)

Gets a resource string from the internal resource file for the specified key.

GetResourceString(key, arg, arg2, ..., argN)

Gets a resource string from the internal resource file for the specified key. and formats the resource using the value(s) in args.

Parameters

key

The key of the resource string to retrieve

arg

One or more arguments to format the resource string.

Returns

Var Containing string formated with any arg passed in.

Example

msg := MfEnvironment.Instance.GetResourceString("NotSupportedException_AbstractClass", "MyAbstractClass")
ex := new MfNotSupportedException(msg)
ex.SetProp(A_LineFile, A_LineNumber, A_ThisFunc)
throw ex

Related

GetResourceStringBySection(), Resource Strings