Forum Discussion

smrutirmohanty's avatar
smrutirmohanty
Occasional Visitor
10 months ago

Query regarding error

function BoldText()
{
var1 = NameMapping.Sys.Philips_Configure.HwndSource_ShellWindow.ShellWindow.contentTabs.tLeft.cbox;
// Specifies new attributes
var attr = Log.var1;
attr.BoldText();
// Applies these attributes to a message
Log.Message("default value is in BOLD", "", pmNormal, attr);

}

Getting  a error message as 

cannot  find BOLDText property of Undefined.

1 Reply

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Your coding looks incomplete - the variable 'var1 = ' does not equal anything?

     

     

    What is attr.BoldText() ?

     

    I suggest you look at the example given in LogAttributes Object, if that is what you are trying to do