GetTemplateColorName

Navigation:  Macros > Macro Language > Built-in Functions > All Functions (Alphabetical) >

GetTemplateColorName

Previous pageReturn to chapter overviewNext page

str = GetTemplateColorName(nIdx)

 

This macro function returns the name of the template color of index nIdx.

// get the name of the second template color
sColorName = GetTemplateColorName(2)
// apply this color to the sResult text
FormatText(sResult, 'COLOR(' + sColorName + ')', -1)

The value of the parameter nIdx is limited to the values 1, 2, or 3.

 

See also: SetTemplateColorName, FormatText and template colors.


Topic 181025 updated on 14-Feb-2019.
Topic URL: https://www.qppstudio.net/webhelp_xe3/index.html?gettemplatecolorname.htm