Forum Discussion

Rekon1602's avatar
Rekon1602
New Contributor
15 years ago

Log.Message Backcolor

Hi



Is it possible to adjust the Color of an entry in the log?



For example:

I want to Log an Information ("Now testing 'Testitem B'"). This should have the backcolor yellow in the messagelog.

  • Hi Tom,





    You can set the background color using the fourth parameter of the Log.Message method:







    Set Attributes = Log.CreateNewAttributes

    Attributes.BackColor = clYellow

    Call Log.Message("Now testing 'Testitem B'", "", pmNormal, Attributes)







    For more information, refer to the following help topics:

    Log.Message

    LogAttributes Object

    Working With Colors