GetResourceStringBySection()

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

GetResourceStringBySection()

Overrides MfResourceSingletonBase.GetResourceStringBySection()

OutputVar := MfEnvironment.Instance.GetResourceStringBySection(Key, section)
OutputVar := MfEnvironment.Instance.GetResourceStringBySection(Key, section, arg, arg2, ..., argN)

GetResourceStringBySection(Key, section)

Gets a resource string from the current resource file with a key in a section

GetResourceStringBySection(Key, section, arg, arg2, ..., argN)

Gets a resource string from the current resource file with a key in a section, with format arg(s)

Parameters

key

The key of the resource string

section

Section of resource to get string value from.

arg

One or more arguments to format the resource string.

Example

msg := MfEnvironment.Instance.GetResourceStringBySection("Argument_Object_Param", "DATA")
ex := new MfException(msg)
ex.SetProp(A_LineFile, A_LineNumber, A_ThisFunc)
throw ex

Related

GetResourceString(), Resource Strings